OPALX (Object Oriented Parallel Accelerator Library for Exascal) master (dc2a29eed580)
OPALX
Loading...
Searching...
No Matches
TestAstra1DMagnetoStatic.cpp File Reference
#include <gtest/gtest.h>
#include "Fields/Astra1DMagnetoStatic.h"
#include "Fields/Fieldmap.h"
#include "Ippl.h"
#include "Physics/Physics.h"
#include "Utilities/GeneralOpalException.h"
#include <cmath>
#include <filesystem>
#include <fstream>
#include <iomanip>
#include <string>
#include <vector>
Include dependency graph for TestAstra1DMagnetoStatic.cpp:

Go to the source code of this file.

Classes

class  Astra1DMagnetoStaticTest
 

Functions

 TEST_F (Astra1DMagnetoStaticTest, ParseAndDimensions)
 
 TEST_F (Astra1DMagnetoStaticTest, IsInside)
 
 TEST_F (Astra1DMagnetoStaticTest, UniformFieldStrengthOnAxis)
 
 TEST_F (Astra1DMagnetoStaticTest, NoNormalization)
 
 TEST_F (Astra1DMagnetoStaticTest, OutsideZRange)
 
 TEST_F (Astra1DMagnetoStaticTest, FieldAccumulation)
 
 TEST_F (Astra1DMagnetoStaticTest, ComputeFieldStaticConstantCoefficient)
 
 TEST_F (Astra1DMagnetoStaticTest, ComputeFieldStaticOffAxisConstantCoefficient)
 
 TEST_F (Astra1DMagnetoStaticTest, ComputeFieldStaticSingleModeOffAxis)
 
 TEST_F (Astra1DMagnetoStaticTest, NonUniformMapProducesNonUniformField)
 
 TEST_F (Astra1DMagnetoStaticTest, FieldDerivativeNoOp)
 
 TEST_F (Astra1DMagnetoStaticTest, FrequencyThrows)
 
 TEST_F (Astra1DMagnetoStaticTest, GetFieldDimensions6ArgThrows)
 
 TEST_F (Astra1DMagnetoStaticTest, SwapNoCrash)
 
 TEST_F (Astra1DMagnetoStaticTest, GetInfoNoCrash)
 
 TEST_F (Astra1DMagnetoStaticTest, MissingFile)
 
 TEST_F (Astra1DMagnetoStaticTest, DictionaryCaching)
 
 TEST_F (Astra1DMagnetoStaticTest, ReadFreeCycle)
 
 TEST_F (Astra1DMagnetoStaticTest, RejectsTooFewSamples)
 
 TEST_F (Astra1DMagnetoStaticTest, RejectsZeroAmplitudeMap)
 

Function Documentation

◆ TEST_F() [1/20]

TEST_F ( Astra1DMagnetoStaticTest  ,
ComputeFieldStaticConstantCoefficient   
)

Definition at line 318 of file TestAstra1DMagnetoStatic.cpp.

◆ TEST_F() [2/20]

TEST_F ( Astra1DMagnetoStaticTest  ,
ComputeFieldStaticOffAxisConstantCoefficient   
)

Definition at line 343 of file TestAstra1DMagnetoStatic.cpp.

◆ TEST_F() [3/20]

TEST_F ( Astra1DMagnetoStaticTest  ,
ComputeFieldStaticSingleModeOffAxis   
)

Definition at line 364 of file TestAstra1DMagnetoStatic.cpp.

References Physics::two_pi.

◆ TEST_F() [4/20]

TEST_F ( Astra1DMagnetoStaticTest  ,
DictionaryCaching   
)

Definition at line 527 of file TestAstra1DMagnetoStatic.cpp.

◆ TEST_F() [5/20]

TEST_F ( Astra1DMagnetoStaticTest  ,
FieldAccumulation   
)

Definition at line 294 of file TestAstra1DMagnetoStatic.cpp.

References Fieldmap::getFieldstrength().

Here is the call graph for this function:

◆ TEST_F() [6/20]

TEST_F ( Astra1DMagnetoStaticTest  ,
FieldDerivativeNoOp   
)

Definition at line 421 of file TestAstra1DMagnetoStatic.cpp.

References DZ.

◆ TEST_F() [7/20]

TEST_F ( Astra1DMagnetoStaticTest  ,
FrequencyThrows   
)

Definition at line 451 of file TestAstra1DMagnetoStatic.cpp.

References Fieldmap::getFrequency(), and Fieldmap::setFrequency().

Here is the call graph for this function:

◆ TEST_F() [8/20]

TEST_F ( Astra1DMagnetoStaticTest  ,
GetFieldDimensions6ArgThrows   
)

Definition at line 466 of file TestAstra1DMagnetoStatic.cpp.

References Fieldmap::getFieldDimensions().

Here is the call graph for this function:

◆ TEST_F() [9/20]

TEST_F ( Astra1DMagnetoStaticTest  ,
GetInfoNoCrash   
)

Definition at line 502 of file TestAstra1DMagnetoStatic.cpp.

References Fieldmap::getInfo().

Here is the call graph for this function:

◆ TEST_F() [10/20]

TEST_F ( Astra1DMagnetoStaticTest  ,
IsInside   
)

Definition at line 167 of file TestAstra1DMagnetoStatic.cpp.

◆ TEST_F() [11/20]

TEST_F ( Astra1DMagnetoStaticTest  ,
MissingFile   
)

Definition at line 518 of file TestAstra1DMagnetoStatic.cpp.

◆ TEST_F() [12/20]

TEST_F ( Astra1DMagnetoStaticTest  ,
NoNormalization   
)

Definition at line 216 of file TestAstra1DMagnetoStatic.cpp.

References Fieldmap::getFieldstrength().

Here is the call graph for this function:

◆ TEST_F() [13/20]

TEST_F ( Astra1DMagnetoStaticTest  ,
NonUniformMapProducesNonUniformField   
)

Definition at line 397 of file TestAstra1DMagnetoStatic.cpp.

References Fieldmap::getFieldstrength().

Here is the call graph for this function:

◆ TEST_F() [14/20]

TEST_F ( Astra1DMagnetoStaticTest  ,
OutsideZRange   
)

Definition at line 244 of file TestAstra1DMagnetoStatic.cpp.

References Fieldmap::getFieldstrength().

Here is the call graph for this function:

◆ TEST_F() [15/20]

TEST_F ( Astra1DMagnetoStaticTest  ,
ParseAndDimensions   
)

Definition at line 140 of file TestAstra1DMagnetoStatic.cpp.

References Fieldmap::getFieldDimensions(), Fieldmap::getType(), and TAstraMagnetoStatic.

Here is the call graph for this function:

◆ TEST_F() [16/20]

TEST_F ( Astra1DMagnetoStaticTest  ,
ReadFreeCycle   
)

Definition at line 540 of file TestAstra1DMagnetoStatic.cpp.

References Fieldmap::freeMap(), Fieldmap::getFieldstrength(), and Fieldmap::readMap().

Here is the call graph for this function:

◆ TEST_F() [17/20]

TEST_F ( Astra1DMagnetoStaticTest  ,
RejectsTooFewSamples   
)

Definition at line 571 of file TestAstra1DMagnetoStatic.cpp.

◆ TEST_F() [18/20]

TEST_F ( Astra1DMagnetoStaticTest  ,
RejectsZeroAmplitudeMap   
)

Definition at line 586 of file TestAstra1DMagnetoStatic.cpp.

◆ TEST_F() [19/20]

TEST_F ( Astra1DMagnetoStaticTest  ,
SwapNoCrash   
)

Definition at line 488 of file TestAstra1DMagnetoStatic.cpp.

◆ TEST_F() [20/20]

TEST_F ( Astra1DMagnetoStaticTest  ,
UniformFieldStrengthOnAxis   
)

Definition at line 184 of file TestAstra1DMagnetoStatic.cpp.

References Fieldmap::getFieldstrength().

Here is the call graph for this function: