#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"
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 ¶llelUnitResults, pcpp::CommunicatorType &testComm) |
#define EPS0 8.85418782e-12 |
Definition at line 13 of file TestMaxwellSolver.C.
Referenced by TestComputeRecipEpsMu(), TestConvertFields(), TestMaxwellRHS(), and TestMaxwellRHSTimeIntegrate().
#define MACHINE_EPS 1e-12 |
Definition at line 11 of file TestMaxwellSolver.C.
Referenced by TestApplyOperatorAppl(), TestComputeRecipEpsMu(), TestConvertFields(), TestCurlOperator(), TestMaxwellRHS(), TestMaxwellRHS_Bfield(), TestMaxwellRHS_Dfield(), and TestMaxwellRHSTimeIntegrate().
#define MU0 1.25663706e-6 |
Definition at line 14 of file TestMaxwellSolver.C.
Referenced by TestComputeRecipEpsMu(), TestConvertFields(), TestMaxwellRHS(), and TestMaxwellRHSTimeIntegrate().
typedef pcpp::ParallelGlobalType global_t |
Definition at line 1569 of file TestMaxwellSolver.C.
Definition at line 1564 of file TestMaxwellSolver.C.
typedef simulation::grid::halo halo_t |
Definition at line 1566 of file TestMaxwellSolver.C.
typedef pcpp::IndexIntervalType interval_t |
Definition at line 1567 of file TestMaxwellSolver.C.
Definition at line 1568 of file TestMaxwellSolver.C.
typedef simulation::state::base state_t |
Definition at line 1565 of file TestMaxwellSolver.C.
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().
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().
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().
void CreateCurlFreeVectorFieldNonzeroDDx2 | ( | int | numDim, |
size_t * | numX, | ||
double * | deltaX, | ||
double * | inputField | ||
) |
Definition at line 158 of file TestMaxwellSolver.C.
void CreateLinearIncreasingField | ( | size_t | numPoints, |
double | coeff, | ||
double * | inputField | ||
) |
Definition at line 322 of file TestMaxwellSolver.C.
References numPoints.
Referenced by TestComputeRecipEpsMu(), and TestConvertFields().
void CreateLinearScalarField | ( | int | numDim, |
size_t * | numX, | ||
double * | deltaX, | ||
double * | field, | ||
double * | coeff | ||
) |
Definition at line 18 of file TestMaxwellSolver.C.
Referenced by TestApplyOperatorAppl().
void TestApplyOperatorAppl | ( | ix::test::results & | serialUnitResults | ) |
Definition at line 332 of file TestMaxwellSolver.C.
References operators::applyoperator(), CreateLinearScalarField(), plascom2::operators::sbp::CreateStencilConnectivity(), FC_MODULE(), plascom2::operators::sbp::Initialize(), MACHINE_EPS, numComponents, numPoints, stencilset::numStencils, stencilset::numValues, opDir, opInterval, stencilID, stencilset::stencilOffsets, stencilset::stencilSizes, stencilset::stencilStarts, stencilset::stencilWeights, and results::UpdateResult().
Referenced by TestingObject< ResultsType >::Test__Maxwell__ApplyOperatorAppl().
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().
void TestConvertFields | ( | ix::test::results & | serialUnitResults | ) |
Definition at line 1144 of file TestMaxwellSolver.C.
References operators::assignmentxa(), Maxwell::ComputeRecipEpsMu(), Maxwell::ConvertBfieldtoHfield(), Maxwell::ConvertDfieldtoEfield(), Maxwell::ConvertEfieldtoDfield(), Maxwell::ConvertHfieldtoBfield(), CreateConstantVectorField(), CreateCurlFreeVectorFieldNonzeroDDx1(), CreateLinearIncreasingField(), EPS0, FC_MODULE(), MACHINE_EPS, MU0, numPoints, opInterval, and results::UpdateResult().
Referenced by TestingObject< ResultsType >::Test__Maxwell__ConvertFields().
void TestCurlOperator | ( | ix::test::results & | serialUnitResults | ) |
Definition at line 428 of file TestMaxwellSolver.C.
References Maxwell::ComputeCurl(), CreateConstantVectorField(), CreateConstCurlVectorField(), CreateCurlFreeVectorFieldNonzeroDDx1(), plascom2::operators::sbp::CreateStencilConnectivity(), plascom2::operators::sbp::Initialize(), MACHINE_EPS, numComponents, numPoints, stencilset::numStencils, opInterval, stencilID, stencilset::stencilStarts, and results::UpdateResult().
Referenced by TestingObject< ResultsType >::Test__Maxwell__CurlOperator().
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().
void TestMaxwellRHS | ( | ix::test::results & | serialUnitResults | ) |
Definition at line 1571 of file TestMaxwellSolver.C.
References parallel_blockstructured::BufferSize(), CreateConstCurlVectorField(), apptools::DumpContents(), EPS0, parallel_blockstructured::Finalize(), dataset::GetFieldBuffer(), parallel_blockstructured::Halo(), plascom2::operators::sbp::Initialize(), dataset::InitializeFieldHandles(), Maxwell::util::InitializeMaxwellParameters(), Maxwell::util::InitializeMaxwellStateConstFields(), sizeextent::InitSimple(), MACHINE_EPS, MU0, numPointsBuffer, stencilset::numStencils, parallel_blockstructured::PartitionBufferInterval(), parallel_blockstructured::PartitionInterval(), parallel_blockstructured::SetDimensionExtensions(), parallel_blockstructured::SetGridSizes(), parallel_blockstructured::SetGridSpacings(), Maxwell::util::SetupMaxwellStateAndParameters(), and results::UpdateResult().
Referenced by TestingObject< ResultsType >::Test__Maxwell__RHS().
void TestMaxwellRHS_Bfield | ( | ix::test::results & | serialUnitResults | ) |
Definition at line 608 of file TestMaxwellSolver.C.
References Maxwell::ComputeMaxwellRHS_Bfield(), CreateConstantVectorField(), CreateConstCurlVectorField(), CreateCurlFreeVectorFieldNonzeroDDx1(), plascom2::operators::sbp::CreateStencilConnectivity(), plascom2::operators::sbp::Initialize(), MACHINE_EPS, numComponents, numPoints, stencilset::numStencils, opInterval, stencilID, stencilset::stencilStarts, and results::UpdateResult().
Referenced by TestingObject< ResultsType >::Test__Maxwell__RHS_Bfield().
void TestMaxwellRHS_Dfield | ( | ix::test::results & | serialUnitResults | ) |
Definition at line 789 of file TestMaxwellSolver.C.
References Maxwell::ComputeMaxwellRHS_Dfield(), CreateConstantVectorField(), CreateConstCurlVectorField(), CreateCurlFreeVectorFieldNonzeroDDx1(), plascom2::operators::sbp::CreateStencilConnectivity(), plascom2::operators::sbp::Initialize(), MACHINE_EPS, numComponents, numPoints, stencilset::numStencils, opInterval, stencilID, stencilset::stencilStarts, and results::UpdateResult().
Referenced by TestingObject< ResultsType >::Test__Maxwell__RHS_Dfield().
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().