Function pcms::MakeEQDSKField(const std::string&)

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:

  1. Reads the EQDSK file into an EQDSKData

  2. Creates a SplineFunctionSpace from the data

  3. Creates a Field<Real> on that function space

  4. 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.