40#include "singlePhaseTransportModel.H"
41#include "turbulentTransportModel.H"
42#include "pimpleControl.H"
43#include "pisoControl.H"
134 autoPtr<volScalarField>
_T;
143 autoPtr<dimensionedScalar>
_Pr;
146 autoPtr<dimensionedScalar>
_Prt;
158 autoPtr<dimensionedScalar>
_nu;
161 autoPtr<volScalarField>
_gh;
164 autoPtr<surfaceScalarField>
_ghf;
166 autoPtr<dimensionedVector>
_g;
175 autoPtr<volScalarField>
_S;
195 void truthSolve(fileName folder =
"./ITHACAOutput/Offline");
Implementation of a parametrized full order unsteady Boussinesq problem and preparation of the the ...
autoPtr< volScalarField > _p_rgh
Shifted Pressure field.
Eigen::MatrixXd mass_term_temperature(label NUmodes, label NTmodes, label NSUPmodes)
Mass Term Energy Equation.
Eigen::Tensor< double, 3 > convective_term_tens_temperature(label NUmodes, label NTmodes, label NSUPmodes)
Export convective term energy equation as a tensor.
autoPtr< volScalarField > _nut
dimensionedScalar nut;
void liftSolveT()
Perform a lift solve for temperature.
void solvesupremizer(word type="snapshots")
solve the supremizer either with the use of the pressure snaphots or the pressure modes
Eigen::MatrixXd HP_matrix
Buoyancy term - PPE equation.
Eigen::MatrixXd Y_matrix
Diffusive term - energy equation.
autoPtr< volScalarField > _UliftBC
Eigen::MatrixXd diffusive_term_temperature(label NUmodes, label NTmodes, label NSUPmodes)
Diffusive Term Energy Equation.
PtrList< volScalarField > NUTModesWeighted
List of pointers used to form the Weighted nested-POD modes for nut-field.
Eigen::Tensor< double, 3 > Q_tensor
PtrList< volScalarField > Prghmodes
List of pointers used to form the shifted pressure modes.
autoPtr< volScalarField > _T
Temperature field.
autoPtr< dimensionedScalar > _Prt
dimensionedScalar Prt;
Eigen::MatrixXd W_matrix
Mass Matrix - energy equation.
autoPtr< dimensionedScalar > _Pr
dimensionedScalar Pr;
PtrList< volScalarField > Tomfield
List of pointers used to form the homogeneous velocity snapshots.
List< Eigen::MatrixXd > convective_term_temperature(label NUmodes, label NTmodes, label NSUPmodes)
Convective Term Energy Equation.
Eigen::MatrixXd pressure_gradient_term(label NUmodes, label NPrghmodes, label NSUPmodes)
Gradient of pressure.
PtrList< volScalarField > Prghfield
List of pointers used to form the shifted pressure snapshots matrix.
Eigen::MatrixXd divergence_term(label NUmodes, label NPrghmodes, label NSUPmodes)
Divergence Term (supremizer approach)
autoPtr< dimensionedVector > _g
PtrList< volScalarField > PModesWeighted
List of pointers used to form the Weighted nested-POD modes for pressure field.
autoPtr< dimensionedScalar > _hRef
dimensionedScalar hRef;
autoPtr< dimensionedScalar > _nu
dimensionedScalar nu;
void change_viscosity(double mu)
Function to change the viscosity.
autoPtr< dimensionedScalar > _ghRef
dimensionedScalar ghRef;
UnsteadyBB()
Null constructor.
PtrList< volVectorField > Ufield_on
List of pointers used to form the temperature snapshots matrix.
void projectSUP(fileName folder, label NUmodes, label NPmodes, label NTmodes, label NSUPmodes)
Project using a supremizer approach.
PtrList< volVectorField > UModesWeighted
Pointers for perfoming Nested-POD Method List of pointers used to form the Weighted nested-POD modes ...
Eigen::MatrixXd H_matrix
Buoyancy term - momentum equation.
void liftSolve()
Perform a lift solve for velocity field.
autoPtr< volScalarField > _gh
List of pointers used to form the gravitational acceleration.
PtrList< volScalarField > Pfield_on
List of pointers used to form the temperature snapshots matrix.
autoPtr< fvMesh > _mesh
Mesh.
label NPrghmodes
Number of pressure modes used for the projection.
Eigen::MatrixXd buoyant_term_poisson(label NPrghmodes, label NTmodes)
Buoyant Term PPE Equation.
PtrList< volScalarField > L_T_modes
List of pointers containing the lift for temperature and the temperature field.
List< Eigen::MatrixXd > Q_matrix
Non linear convective term - energy equation.
autoPtr< dimensionedScalar > _TRef
dimensionedScalar Tref;
PtrList< volScalarField > Tmodes
List of pointers used to form the temperature modes.
bool checkWrite(Time &timeObject)
Function to check if the solution must be exported.
autoPtr< dimensionedScalar > _beta
dimensionedScalar beta;
autoPtr< volScalarField > _rhok
dimensionedScalar rhok;
autoPtr< volScalarField > _alphat
dimensionedScalar alphat;
PtrList< volScalarField > Tfield_on
List of pointers used to form the temperature snapshots matrix.
PtrList< volScalarField > liftfieldT
List of pointers used to form the list of lifting functions.
PtrList< volScalarField > TModesWeighted
List of pointers used to form the Weighted nested-POD modes for temperature field.
Eigen::MatrixXd buoyant_term(label NUmodes, label NTmodes, label NSUPmodes)
Buoyant Term Momentum Equation.
PtrList< volScalarField > Tfield
List of pointers used to form the temperature snapshots matrix.
void projectPPE(fileName folder, label NUmodes, label NPrghmodes, label NTmodes, label NSUPmodes)
Project using a PPE approach.
autoPtr< surfaceScalarField > _ghf
List of pointers used to form the gravitational acceleration.
autoPtr< volScalarField > _S
Source Term Heat.
label NTmodes
Number of temperature modes used for the projection.
Eigen::MatrixXd mu
Row matrix of parameters.
void truthSolve()
Perform a TruthSolve.
label NPmodes
Number of pressure modes used for the projection.
label NUmodes
Number of velocity modes used for the projection.
label NSUPmodes
Number of supremizer modes used for the projection.
Implementation of a parametrized full order unsteady NS problem and preparation of the the reduced ...
Header file of the unsteadyNS class.