40#include "dynamicFvMesh.H"
41#include "singlePhaseTransportModel.H"
42#include "turbulentTransportModel.H"
43#include "pimpleControl.H"
45#include "CorrectPhi.H"
46#include "sixDoFRigidBodyMotionSolver.H"
47#include "sixDoFRigidBodyMotion.H"
54#include "meshToMesh0.H"
57#include "UnsteadyProblem.H"
86 autoPtr<volScalarField> _p;
88 autoPtr<dynamicFvMesh> meshPtr;
89 autoPtr<fvMesh> Mesh0;
91 PtrList<dynamicFvMesh> meshes;
94 autoPtr<sixDoFRigidBodyMotionSolver> sDRBMS;
99 autoPtr<surfaceVectorField> _Uf;
104 List<scalar> centerofmassy;
105 List<scalar> centerofmassz;
109 PtrList<volVectorField> Ufield;
118 List<scalar> fomforcex;
122 Eigen::MatrixXd CylDispl;
123 Eigen::MatrixXd CylRot;
134 bool checkMeshCourantNo;
135 bool moveMeshOuterCorrectors;
137 autoPtr<IOdictionary> dyndict;
138 autoPtr<IOobject> oMesh;
148 void truthSolve(label paramIndex, fileName folder =
"./ITHACAoutput/Offline/");
155 void change_stiffness(scalar&
mu);
157 word param_name =
"stiffness");
160 const word& fileName,
161 const List<scalar>& foamField);
Header file of the ITHACAPOD class.
Header file of the ITHACAstream class, it contains the implementation of several methods for input ou...
Header file of the ITHACAutilities namespace.
void updateStiffnessAndRebuildSolver(scalar &newMu, word param_name="stiffness")
autoPtr< pointVectorField > _pointDisplacement
pointDisplacement field
pointVectorModes Dmodes
List of POD modes for pointDisplacement.
std::vector< SPLINTER::DataTable * > samples
Create a samples for interpolation.
Eigen::VectorXd pdCoeff
The vector of L2 projection coefficients for the pointDisplacement snapshot.
List< scalar > fomforcey
List to save lift and drag forces.
void prepareFoamData(const word &outputPath)
Prepare data such forces and centre of mass.
PtrList< surfaceVectorField > NormalFields
List of surface normal vectors.
autoPtr< pimpleControl > _pimple
pimpleControl
void exportFoamFieldToNpy(const word &outputDir, const word &fileName, const List< scalar > &foamField)
Help function for the prepareFoamData routine.
PtrList< pointVectorField > Dfield
List of pointers used to form the displacement snapshots matrix.
void change_viscosity(double mu)
Method to construct RBFI for pointDisplacement void PodIpointDispl(Eigen::MatrixXd muu,...
Eigen::MatrixXd coeffL2
The matrix of L2 projection coefficients for pointDisplacement.
PtrList< pointVectorField > DFields
List of pointers used pointDisplacement modes.
void restart()
method to set all fields back to values in 0 folder
fsiBasic()
Construct Null.
List< scalar > centerofmassx
List scalar for access the centerofmass.
std::vector< SPLINTER::RBFSpline * > rbfSplines
Create a RBF splines for interpolation.
void loadCentreOfMassY(const fileName &baseDir="ITHACAoutput")
to load all centre of mass for training RBF network
Eigen::MatrixXd mu
Row matrix of parameters.
void truthSolve()
Perform a TruthSolve.
steadyNS()
Null constructor.
Header file of the steadyNS class.
Header file of the unsteadyNS class.