11#include "setRootCase.H"
22 std::string folder = dir;
26 for (label j = 0; j <
Npoints; j++)
28 folder.append(std::to_string(j));
48 std::cout <<
"Outputs of the model are not computed yet, programm aborted" <<
label Npoints
Number of points for which simulation is run.
std::string name
Name of the figure of merit.
Eigen::VectorXd modelOutput
Vector to store the desired output of the model, i.e. the figure of merit.
bool MObuilt
boolean variable to check if the model output is computed (true) or not (false)
PtrList< volScalarField > ptrfield
list of pointers to scalar and vector field
autoPtr< fvMesh > _mesh
dummy variables to transform FofM into a class
autoPtr< volScalarField > _powerDens
List of pointers to power density field.
void buildMO(std::string dir, label t)
Method that computes the total power for the snapshot number t (starting from 0), output are sought i...
volScalarField & powerDens
void read_fields(PtrList< GeometricField< Type, PatchField, GeoMesh > > &Lfield, word Name, fileName casename, int first_snap, int n_snap)
Function to read a list of fields from the name of the field and casename.
bool check_folder(word folder)
Checks if a folder exists.