PlasCom2  1.0
XPACC Multi-physics simluation application
TestMaxwellSolver.C File Reference
#include "Testing.H"
#include "Simulation.H"
#include "OperatorKernels.H"
#include "MaxwellSolver.H"
#include "RK4Advancer.H"
#include "EulerUtil.H"
#include "MaxwellUtil.H"
#include "MaxwellBC.H"
#include "PC2IO.H"
Include dependency graph for TestMaxwellSolver.C:

Go to the source code of this file.

Macros

#define MACHINE_EPS   1e-12
 
#define EPS0   8.85418782e-12
 
#define MU0   1.25663706e-6
 

Typedefs

typedef simulation::grid::parallel_blockstructured grid_t
 
typedef simulation::state::base state_t
 
typedef simulation::grid::halo halo_t
 
typedef pcpp::IndexIntervalType interval_t
 
typedef plascom2::operators::sbp::base operator_t
 
typedef pcpp::ParallelGlobalType global_t
 

Functions

void CreateLinearScalarField (int numDim, size_t *numX, double *deltaX, double *field, double *coeff)
 
void CreateConstantVectorField (int numDim, size_t *numX, double *value, double *inputField)
 
void CreateCurlFreeVectorFieldNonzeroDDx1 (int numDim, size_t *numX, double *deltaX, double *inputField)
 
void CreateCurlFreeVectorFieldNonzeroDDx2 (int numDim, size_t *numX, double *deltaX, double *inputField)
 
void CreateConstCurlVectorField (int numDim, size_t *numX, double *deltaX, double *inputField, double *curlComp)
 
void CreateLinearIncreasingField (size_t numPoints, double coeff, double *inputField)
 
void TestApplyOperatorAppl (ix::test::results &serialUnitResults)
 
void TestCurlOperator (ix::test::results &serialUnitResults)
 
void TestMaxwellRHS_Bfield (ix::test::results &serialUnitResults)
 
void TestMaxwellRHS_Dfield (ix::test::results &serialUnitResults)
 
void TestComputeRecipEpsMu (ix::test::results &serialUnitResults)
 
void TestConvertFields (ix::test::results &serialUnitResults)
 
void TestDirichletBC (ix::test::results &serialUnitResults)
 
void TestMaxwellRHS (ix::test::results &serialUnitResults)
 
void TestMaxwellRHSTimeIntegrate (ix::test::results &parallelUnitResults, pcpp::CommunicatorType &testComm)
 

Macro Definition Documentation

◆ EPS0

#define EPS0   8.85418782e-12

◆ MACHINE_EPS

◆ MU0

#define MU0   1.25663706e-6

Typedef Documentation

◆ global_t

Definition at line 1569 of file TestMaxwellSolver.C.

◆ grid_t

◆ halo_t

Definition at line 1566 of file TestMaxwellSolver.C.

◆ interval_t

Definition at line 1567 of file TestMaxwellSolver.C.

◆ operator_t

◆ state_t

Definition at line 1565 of file TestMaxwellSolver.C.

Function Documentation

◆ CreateConstantVectorField()

void CreateConstantVectorField ( int  numDim,
size_t *  numX,
double *  value,
double *  inputField 
)

Definition at line 64 of file TestMaxwellSolver.C.

References numPoints.

Referenced by TestConvertFields(), TestCurlOperator(), TestMaxwellRHS_Bfield(), and TestMaxwellRHS_Dfield().

Here is the caller graph for this function:

◆ CreateConstCurlVectorField()

void CreateConstCurlVectorField ( int  numDim,
size_t *  numX,
double *  deltaX,
double *  inputField,
double *  curlComp 
)

Definition at line 239 of file TestMaxwellSolver.C.

References numPoints, X, Y, and Z.

Referenced by TestCurlOperator(), TestMaxwellRHS(), TestMaxwellRHS_Bfield(), and TestMaxwellRHS_Dfield().

Here is the caller graph for this function:

◆ CreateCurlFreeVectorFieldNonzeroDDx1()

void CreateCurlFreeVectorFieldNonzeroDDx1 ( int  numDim,
size_t *  numX,
double *  deltaX,
double *  inputField 
)

Definition at line 86 of file TestMaxwellSolver.C.

References numPoints, X, Y, and Z.

Referenced by TestConvertFields(), TestCurlOperator(), TestMaxwellRHS_Bfield(), and TestMaxwellRHS_Dfield().

Here is the caller graph for this function:

◆ CreateCurlFreeVectorFieldNonzeroDDx2()

void CreateCurlFreeVectorFieldNonzeroDDx2 ( int  numDim,
size_t *  numX,
double *  deltaX,
double *  inputField 
)

Definition at line 158 of file TestMaxwellSolver.C.

References numPoints, Y, and Z.

◆ CreateLinearIncreasingField()

void CreateLinearIncreasingField ( size_t  numPoints,
double  coeff,
double *  inputField 
)

Definition at line 322 of file TestMaxwellSolver.C.

References numPoints.

Referenced by TestComputeRecipEpsMu(), and TestConvertFields().

Here is the caller graph for this function:

◆ CreateLinearScalarField()

void CreateLinearScalarField ( int  numDim,
size_t *  numX,
double *  deltaX,
double *  field,
double *  coeff 
)

Definition at line 18 of file TestMaxwellSolver.C.

Referenced by TestApplyOperatorAppl().

Here is the caller graph for this function:

◆ TestApplyOperatorAppl()

◆ TestComputeRecipEpsMu()

void TestComputeRecipEpsMu ( ix::test::results serialUnitResults)

Definition at line 1053 of file TestMaxwellSolver.C.

References operators::assignmentxa(), Maxwell::ComputeRecipEpsMu(), CreateLinearIncreasingField(), EPS0, FC_MODULE(), MACHINE_EPS, MU0, numPoints, opInterval, and results::UpdateResult().

Referenced by TestingObject< ResultsType >::Test__Maxwell__ComputeRecipEpsMu().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ TestConvertFields()

◆ TestCurlOperator()

◆ TestDirichletBC()

void TestDirichletBC ( ix::test::results serialUnitResults)

Definition at line 1442 of file TestMaxwellSolver.C.

References pcpp::comm::CheckResult(), Maxwell::bc::ComputeDirichletBC(), numPointsBuffer, and results::UpdateResult().

Referenced by TestingObject< ResultsType >::Test__Maxwell__DirichletBC().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ TestMaxwellRHS()

◆ TestMaxwellRHS_Bfield()

◆ TestMaxwellRHS_Dfield()

◆ TestMaxwellRHSTimeIntegrate()

void TestMaxwellRHSTimeIntegrate ( ix::test::results parallelUnitResults,
pcpp::CommunicatorType testComm 
)

Definition at line 1957 of file TestMaxwellSolver.C.

References rk4advancer< DomainType >::AdvanceDomain(), CommunicatorObject::Barrier(), parallel_blockstructured::BufferSize(), bufferSizes, parallel_blockstructured::BufferSizes(), pcpp::comm::CheckResult(), ix::sys::CreateDirectory(), EPS0, GlobalObj< StackType, ErrorType, ProfilerType >::ErrOut(), ix::sys::FILEEXISTS(), dataset::GetFieldBuffer(), gridSizes, parallel_blockstructured::Halo(), ParallelGlobalObj< CommunicatorType, StackType, ErrorType, ProfilerType >::Init(), rk4advancer< DomainType >::InitializeAdvancer(), dataset::InitializeFieldHandles(), Maxwell::util::InitializeMaxwellParameters(), Maxwell::util::InitializeMaxwellStateConstFields(), euler::util::InitializeSimulationFixtures(), MACHINE_EPS, MU0, numPointsBuffer, plascom2::io::hdf5::OutputSingle(), parallel_blockstructured::PartitionBufferInterval(), parallel_blockstructured::PartitionInterval(), ix::util::RenewStream(), rk4advancer< DomainType >::SetCommunication(), rhs< GridT, StateT, OperatorT >::SetGrid(), parallel_blockstructured::SetGridSizes(), parallel_blockstructured::SetPhysicalExtent(), rk4advancer< DomainType >::SetTimers(), Maxwell::util::SetupMaxwellStateAndParameters(), GlobalObj< StackType, ErrorType, ProfilerType >::StdOut(), rk4advancer< DomainType >::SyncIntervals(), and results::UpdateResult().

Referenced by ParallelTestingObject< CommType, ResultsType >::Test__Maxwell__RHSTimeIntegrate().

Here is the call graph for this function:
Here is the caller graph for this function: