Function pcms::MakeEQDSKField(const std::string&)
Defined in File eqdsk_field.h
Function Documentation
-
inline EQDSKFieldWithData pcms::MakeEQDSKField(const std::string &filename)
Read an EQDSK file and construct a SplineFunctionSpace and Field from it, combining file I/O, function space creation, field allocation, and DOF holder data population into a single call.
Performs four steps:
Reads the EQDSK file into an EQDSKData
Creates a SplineFunctionSpace from the data
Creates a Field<Real> on that function space
Populates the field’s DOF holder with the PSIZR flux data
- Parameters:
filename – Path to the EQDSK equilibrium file.
- Returns:
EQDSKFieldWithData A struct containing the data, function space, and populated field, ready for evaluation.