Loading...
Searching...
No Matches
msr Class Reference
Inheritance diagram for msr:
usmsrProblem usmsrProblem msrProblem UnsteadyProblem msrProblem UnsteadyProblem reductionProblem reductionProblem

Public Member Functions

 msr (int argc, char *argv[])
 
void offlineSolve ()
 
 msr (int argc, char *argv[])
 
void offlineSolve (std::string dir)
 
- Public Member Functions inherited from usmsrProblem
 usmsrProblem ()
 Construct Null.
 
 usmsrProblem (int argc, char *argv[])
 Construct with argc and argv.
 
bool checkWrite (Time &timeObject)
 Function to check if the solution must be exported.
 
void truthSolve (List< scalar > mu_now)
 Perform a truthsolve.
 
void truthSolve (List< scalar > mu_now, std::string folder)
 Perform a truthsolve exporting the solution in std::string folder.
 
- Public Member Functions inherited from msrProblem
 msrProblem ()
 
 msrProblem (int argc, char *argv[])
 Construct with argc e argv.
 
 ~msrProblem ()
 
void truthSolve (List< scalar > mu_now)
 Perform the offline solution of MSR steady state problem.
 
void msrcoeff (label &NC)
 method to apply RBF interpolation procedure NC is the number of modes to adopt for construncting the basis
 
void liftSolve ()
 Perform a lift solve for the velocity field.
 
void liftSolveT ()
 Perform a lift solve for the temperature.
 
void readMSRfields ()
 Method to read all the fieds of the MSR problem in the offline folder, it also reads mu_samples matrix.
 
void readMSRfields (std::string &dir)
 
void homogenizeU ()
 Method to compute the homogenized velocity field, it also sets homboolU=true.
 
void homogenizeT ()
 Method to compute the homogenized temperature field, it also sets homboolT=true.
 
void msrgetModesSVD ()
 Method to compute the modes for all the fields in the MSR problem, if hombool==false the velocity modes are computed form Uomfield snapshost, Ufields otherwise.
 
void msrgetModesEVD ()
 Method to compute the modes for all the fields in the MSR problem, if hombool==false the velocity modes are computed form Uomfield snapshost, Ufields otherwise.
 
void projectPPE (fileName folder, label NUmodes, label NPmodes, label NFluxmodes, Eigen::VectorXi Nprecmodes, label NTmodes, Eigen::VectorXi Ndecmodes, label NCmodes)
 Project using the Poisson Equation for pressure.
 
Eigen::MatrixXd diffusive_term (label NUmodes, label NPmodes)
 sub-functions needed by projectPPE
 
Eigen::MatrixXd pressure_gradient_term (label NUmodes, label NPmodes)
 
List< Eigen::MatrixXd > convective_term (label NUmodes, label NPmodes)
 
Eigen::MatrixXd mass_term (label NUmodes, label NPmodes)
 
Eigen::MatrixXd divergence_term (label NUmodes, label NPmodes)
 continuity eq. methods:
 
List< Eigen::MatrixXd > div_momentum (label NUmodes, label NPmodes)
 
Eigen::MatrixXd laplacian_pressure (label NPmodes)
 
Eigen::MatrixXd pressure_BC1 (label NUmodes, label NPmodes)
 
List< Eigen::MatrixXd > pressure_BC2 (label NUmodes, label NPmodes)
 
Eigen::MatrixXd pressure_BC3 (label NUmodes, label NPmodes)
 
List< Eigen::MatrixXd > laplacian_flux (label NFluxmodes, label NCmodes)
 diffusion eq. methods:
 
Eigen::MatrixXd mass_flux (label NFluxmodes)
 
List< Eigen::MatrixXd > prod_flux (label NFluxmodes, label NCmodes)
 
List< Eigen::MatrixXd > abs_flux (label NFluxmodes, label NCmodes)
 
Eigen::MatrixXd prec_source (label NFluxmodes, label NPrecmodes, label family)
 
List< Eigen::MatrixXd > stream_term (label NUmodes, label NPrecmodes, label family)
 precursor eq. methods:
 
Eigen::MatrixXd prec_mass (label NPrecmodes, label family)
 
Eigen::MatrixXd laplacian_prec (label NPrecmodes, label family)
 
List< Eigen::MatrixXd > flux_source (label NFluxmodes, label NPrecmodes, label NCmodes, label family)
 
List< Eigen::MatrixXd > stream_dec (label NUmodes, label NDecmodes, label decgroup)
 decay heat eq. methods:
 
Eigen::MatrixXd dec_mass (label NDecmodes, label decgroup)
 
Eigen::MatrixXd laplacian_dec (label NDecmodes, label decgroup)
 
List< Eigen::MatrixXd > dec_fluxsource (label NFluxmodes, label NDecmodes, label NCmodes, label decgroup)
 
Eigen::MatrixXd mass_temp (label NTmodes)
 temperature eq. methods
 
List< Eigen::MatrixXd > temp_stream (label NUmodes, label NTmodes)
 
Eigen::MatrixXd laplacian_temp (label NTmodes)
 
List< Eigen::MatrixXd > temp_heatsource (label NTmodes, label NDecmodes, label NCmodes, label decgroup)
 
List< Eigen::MatrixXd > temp_XSfluxsource (label NTmodes, label NFluxmodes, label NCmodes)
 
void change_viscosity (double mu)
 method to change the viscosity in UEqn
 
void restart ()
 method to set all fields back to values in 0 folder
 
- Public Member Functions inherited from reductionProblem
 reductionProblem ()
 Construct Null.
 
 ~reductionProblem ()
 
void setParameters ()
 Set Parameters Problems.
 
void genRandPar ()
 Generate Random Numbers.
 
void genRandPar (label tsize)
 Generate Random Numbers given the dimension of the training set.
 
void genEquiPar ()
 Generate Equidistributed Numbers.
 
void truthSolve ()
 Perform a TruthSolve.
 
void assignBC (volVectorField &s, label BC_ind, Vector< double > &value)
 Assign Boundary Condition to a volVectorField.
 
void assignBC (volScalarField &s, label BC_ind, double &value)
 Assign Boundary Condition to a volScalarField.
 
void reconstructFromMatrix (PtrList< volVectorField > &rec_field2, PtrList< volVectorField > &modes, label Nmodes, Eigen::MatrixXd coeff_matrix)
 Exact reconstruction using a certain number of modes for vector list of fields and the projection coefficients (volVectorField)
 
void reconstructFromMatrix (PtrList< volScalarField > &rec_field2, PtrList< volScalarField > &modes, label Nmodes, Eigen::MatrixXd coeff_matrix)
 Exact reconstruction using a certain number of modes for vector list of fields and the projection coefficients (volScalarField)
 
template<typename T , typename G >
void assignIF (T &s, G &value)
 Assign internal field condition.
 
template<typename T >
void computeLift (T &Lfield, T &liftfield, T &omfield)
 Homogenize the snapshot matrix, it works with PtrList of volVectorField and volScalarField.
 
template<typename T >
void computeLiftT (T &Lfield, T &liftfield, T &omfield)
 Virtual function to compute the lifting function.
 
void liftSolve ()
 Virtual function to compute the lifting function for scalar field.
 
void liftSolveT ()
 
void project ()
 General projection operation.
 
void writeMu (List< scalar > mu_now)
 Write out a list of scalar corresponding to the parameters used in the truthSolve.
 
std::vector< SPLINTER::RBFSpline > getCoeffManifoldRBF (PtrList< volVectorField > snapshots, PtrList< volVectorField > &modes, word rbfBasis="GAUSSIAN")
 Constructs the parameters-coefficients manifold for vector fields, based on RBF-spline model.
 
std::vector< SPLINTER::RBFSpline > getCoeffManifoldRBF (PtrList< volScalarField > snapshots, PtrList< volScalarField > &modes, word rbfBasis="GAUSSIAN")
 Constructs the parameters-coefficients manifold for scalar fields, based on RBF-spline model.
 
std::vector< SPLINTER::BSpline > getCoeffManifoldSPL (PtrList< volVectorField > snapshots, PtrList< volVectorField > &modes, label splDeg=3)
 Constructs the parameters-coefficients manifold for vector fields, based on the B-spline model.
 
std::vector< SPLINTER::BSpline > getCoeffManifoldSPL (PtrList< volScalarField > snapshots, PtrList< volScalarField > &modes, label splDeg=3)
 Constructs the parameters-coefficients manifold for scalar fields, based on the B-spline model.
 
- Public Member Functions inherited from UnsteadyProblem
 UnsteadyProblem ()
 
void setTimes (Time &timeObject)
 
bool checkWrite (Time &timeObject)
 Function to check if the solution must be exported.
 

Public Attributes

volVectorField & U
 
volScalarField & p
 
volScalarField & flux
 
volScalarField & prec1
 
volScalarField & prec2
 
volScalarField & prec3
 
volScalarField & prec4
 
volScalarField & prec5
 
volScalarField & prec6
 
volScalarField & prec7
 
volScalarField & prec8
 
volScalarField & T
 
volScalarField & dec1
 
volScalarField & dec2
 
volScalarField & dec3
 
volScalarField & v
 
volScalarField & D
 
volScalarField & NSF
 
volScalarField & A
 
volScalarField & SP
 
volScalarField & TXS
 
ITHACAparameterspara = ITHACAparameters::getInstance(_mesh(), _runTime())
 
int NUproj = para->ITHACAdict->lookupOrDefault<int>("NUproj", 2)
 
int NPproj = para->ITHACAdict->lookupOrDefault<int>("NPproj", 2)
 
int NFluxproj = para->ITHACAdict->lookupOrDefault<int>("NFluxproj", 2)
 
int NPrecproj1 = para->ITHACAdict->lookupOrDefault<int>("NPrecproj1", 2)
 
int NPrecproj2 = para->ITHACAdict->lookupOrDefault<int>("NPrecproj2", 2)
 
int NPrecproj3 = para->ITHACAdict->lookupOrDefault<int>("NPrecproj3", 2)
 
int NPrecproj4 = para->ITHACAdict->lookupOrDefault<int>("NPrecproj4", 2)
 
int NPrecproj5 = para->ITHACAdict->lookupOrDefault<int>("NPrecproj5", 2)
 
int NPrecproj6 = para->ITHACAdict->lookupOrDefault<int>("NPrecproj6", 2)
 
int NPrecproj7 = para->ITHACAdict->lookupOrDefault<int>("NPrecproj7", 2)
 
int NPrecproj8 = para->ITHACAdict->lookupOrDefault<int>("NPrecproj8", 2)
 
int NTproj = para->ITHACAdict->lookupOrDefault<int>("NTproj", 2)
 
int NDecproj1 = para->ITHACAdict->lookupOrDefault<int>("NDecproj1", 2)
 
int NDecproj2 = para->ITHACAdict->lookupOrDefault<int>("NDecproj2", 2)
 
int NDecproj3 = para->ITHACAdict->lookupOrDefault<int>("NDecproj3", 2)
 
int NCproj = para->ITHACAdict->lookupOrDefault<int>("NCproj", 2)
 
double r1 = _beta1().value() / _betaTot().value()
 
double r2 = _beta2().value() / _betaTot().value()
 
double r3 = _beta3().value() / _betaTot().value()
 
double r4 = _beta4().value() / _betaTot().value()
 
double r5 = _beta5().value() / _betaTot().value()
 
double r6 = _beta6().value() / _betaTot().value()
 
double r7 = _beta7().value() / _betaTot().value()
 
double r8 = _beta8().value() / _betaTot().value()
 
- Public Attributes inherited from usmsrProblem
autoPtr< dimensionedScalar > _tau
 
autoPtr< pimpleControl > _pimple
 pimpleControl
 
autoPtr< pimpleControl > _npimple
 
autoPtr< incompressible::turbulenceModel > turbulence
 Turbulence model.
 
bool adjustTimeStep
 adjustTimeStep
 
scalar maxCo
 maxCourant
 
scalar maxDeltaT
 maxDeltaT
 
- Public Attributes inherited from msrProblem
autoPtr< Time > _runTime
 
autoPtr< fvMesh > _mesh
 
autoPtr< volVectorField > _U
 
autoPtr< surfaceScalarField > _phi
 
autoPtr< singlePhaseTransportModel > _laminarTransport
 
autoPtr< incompressible::turbulenceModel > turbulence
 
autoPtr< IOMRFZoneList > _MRF
 
autoPtr< volScalarField > _p
 
label pRefCell
 
scalar pRefValue
 
autoPtr< dimensionedScalar > _nu
 
autoPtr< dimensionedScalar > _Pr
 
autoPtr< dimensionedScalar > _Prt
 
autoPtr< dimensionedScalar > _rhoRef
 
autoPtr< volScalarField > _v
 
autoPtr< dimensionedScalar > _CpRef
 
autoPtr< dimensionedScalar > _Tref
 
autoPtr< dimensionedScalar > _TrefXS
 
autoPtr< volScalarField > _TXS
 
autoPtr< volScalarField > _p0
 Initial fields (for restart purposes)
 
autoPtr< volVectorField > _U0
 
autoPtr< surfaceScalarField > _phi0
 
autoPtr< volScalarField > _flux0
 
autoPtr< volScalarField > _prec10
 
autoPtr< volScalarField > _prec20
 
autoPtr< volScalarField > _prec30
 
autoPtr< volScalarField > _prec40
 
autoPtr< volScalarField > _prec50
 
autoPtr< volScalarField > _prec60
 
autoPtr< volScalarField > _prec70
 
autoPtr< volScalarField > _prec80
 
autoPtr< volScalarField > _T0
 
autoPtr< volScalarField > _dec10
 
autoPtr< volScalarField > _dec20
 
autoPtr< volScalarField > _dec30
 
autoPtr< dimensionedScalar > _K0
 
autoPtr< volScalarField > _v0
 
autoPtr< volScalarField > _NSF0
 
autoPtr< volScalarField > _A0
 
autoPtr< volScalarField > _D0
 
autoPtr< volScalarField > _SP0
 
autoPtr< volScalarField > _TXS0
 
autoPtr< dimensionedScalar > _Keff
 
autoPtr< dimensionedScalar > _IV1
 
autoPtr< dimensionedScalar > _D1_0
 
autoPtr< volScalarField > _D
 
autoPtr< dimensionedScalar > _alfa_D1
 
autoPtr< dimensionedScalar > _A1_0
 
autoPtr< volScalarField > _A
 
autoPtr< dimensionedScalar > _alfa_A1
 
autoPtr< dimensionedScalar > _NSF1_0
 
autoPtr< volScalarField > _NSF
 
autoPtr< dimensionedScalar > _alfa_NSF1
 
autoPtr< dimensionedScalar > _SP1_0
 
autoPtr< volScalarField > _SP
 
autoPtr< dimensionedScalar > _alfa_SP1
 
autoPtr< dimensionedScalar > _lam1
 
autoPtr< dimensionedScalar > _lam2
 
autoPtr< dimensionedScalar > _lam3
 
autoPtr< dimensionedScalar > _lam4
 
autoPtr< dimensionedScalar > _lam5
 
autoPtr< dimensionedScalar > _lam6
 
autoPtr< dimensionedScalar > _lam7
 
autoPtr< dimensionedScalar > _lam8
 
autoPtr< dimensionedScalar > _beta1
 
autoPtr< dimensionedScalar > _beta2
 
autoPtr< dimensionedScalar > _beta3
 
autoPtr< dimensionedScalar > _beta4
 
autoPtr< dimensionedScalar > _beta5
 
autoPtr< dimensionedScalar > _beta6
 
autoPtr< dimensionedScalar > _beta7
 
autoPtr< dimensionedScalar > _beta8
 
autoPtr< dimensionedScalar > _betaTot
 
autoPtr< volScalarField > _flux
 
autoPtr< dimensionedScalar > _decLam1
 
autoPtr< dimensionedScalar > _decLam2
 
autoPtr< dimensionedScalar > _decLam3
 
autoPtr< dimensionedScalar > _decBeta1
 
autoPtr< dimensionedScalar > _decBeta2
 
autoPtr< dimensionedScalar > _decBeta3
 
autoPtr< dimensionedScalar > _decbetaTot
 
autoPtr< dimensionedScalar > _betaTE
 
autoPtr< volScalarField > _prec1
 
autoPtr< volScalarField > _prec2
 
autoPtr< volScalarField > _prec3
 
autoPtr< volScalarField > _prec4
 
autoPtr< volScalarField > _prec5
 
autoPtr< volScalarField > _prec6
 
autoPtr< volScalarField > _prec7
 
autoPtr< volScalarField > _prec8
 
autoPtr< dimensionedScalar > _Sc
 
autoPtr< dimensionedScalar > _Sct
 
autoPtr< volScalarField > _alphat
 
autoPtr< volScalarField > _difft
 
double tau
 
autoPtr< volScalarField > _T
 
autoPtr< volScalarField > _logT
 
autoPtr< volScalarField > _dec1
 
autoPtr< volScalarField > _dec2
 
autoPtr< volScalarField > _dec3
 
autoPtr< fv::options > _fvOptions
 fvOptions
 
autoPtr< simpleControl > _simple
 simpleControl
 
scalar tolerance
 Tolerance for the residual of the stationary problems, there is the same tolerance for velocity and pressure.
 
scalar maxIter
 Number of maximum iterations to be done for the computation of the truth solution.
 
scalar cumulativeContErr = 0
 continuity error
 
bool precInBool = false
 boolean variable to decide if apply prec inlet BC
 
label precinIndex
 indexes of inlet and outlet to adopt for precursors boundary conditions
 
label precoutIndex
 
Eigen::MatrixXd bc_prec
 matrix to store the values of precursors BC inlet conditions
 
PtrList< volScalarField > Pfield
 List of pointers used to form the pressure snapshots matrix.
 
PtrList< volVectorField > Ufield
 List of pointers used to form the velocity snapshots matrix.
 
PtrList< volScalarField > Fluxfield
 List of pointers used to form the flux snapshots matrix.
 
PtrList< volScalarField > Prec1field
 List of pointers used to form the prec1 snapshots matrix.
 
PtrList< volScalarField > Prec2field
 List of pointers used to form the prec2 snapshots matrix.
 
PtrList< volScalarField > Prec3field
 List of pointers used to form the prec3 snapshots matrix.
 
PtrList< volScalarField > Prec4field
 List of pointers used to form the prec4 snapshots matrix.
 
PtrList< volScalarField > Prec5field
 List of pointers used to form the prec5 snapshots matrix.
 
PtrList< volScalarField > Prec6field
 List of pointers used to form the prec6 snapshots matrix.
 
PtrList< volScalarField > Prec7field
 List of pointers used to form the prec7 snapshots matrix.
 
PtrList< volScalarField > Prec8field
 List of pointers used to form the prec8 snapshots matrix.
 
PtrList< volScalarField > Tfield
 List of pointers used to form the temperature snapshots matrix.
 
PtrList< volScalarField > Dec1field
 List of pointers used to form the dec1 snapshots matrix.
 
PtrList< volScalarField > Dec2field
 List of pointers used to form the dec2 snapshots matrix.
 
PtrList< volScalarField > Dec3field
 List of pointers used to form the dec3 snapshots matrix.
 
PtrList< volScalarField > PowerDensfield
 List of pointers used to form the powerDens snapshots matrix.
 
PtrList< volScalarField > vFields
 List of pointers used to form the v snapshosts matrix.
 
PtrList< volScalarField > DFields
 List of pointers used to form the D snapshosts matrix.
 
PtrList< volScalarField > NSFFields
 List of pointers used to form the NSF snapshosts matrix.
 
PtrList< volScalarField > AFields
 List of pointers used to form the A snapshosts matrix.
 
PtrList< volScalarField > SPFields
 List of pointers used to form the SP snapshosts matrix.
 
PtrList< volScalarField > TXSFields
 List of pointers used to form the SP snapshosts matrix.
 
PtrList< volScalarField > Pmodes
 List of pointers used to form the pressure modes.
 
PtrList< volVectorField > Umodes
 List of pointers used to form the velocity modes.
 
PtrList< volScalarField > Fluxmodes
 List of pointers used to form the flux modes.
 
PtrList< volScalarField > Prec1modes
 List of pointers used to form the prec1 modes.
 
PtrList< volScalarField > Prec2modes
 List of pointers used to form the prec1 modes.
 
PtrList< volScalarField > Prec3modes
 List of pointers used to form the prec1 modes.
 
PtrList< volScalarField > Prec4modes
 List of pointers used to form the prec1 modes.
 
PtrList< volScalarField > Prec5modes
 List of pointers used to form the prec1 modes.
 
PtrList< volScalarField > Prec6modes
 List of pointers used to form the prec1 modes.
 
PtrList< volScalarField > Prec7modes
 List of pointers used to form the prec1 modes.
 
PtrList< volScalarField > Prec8modes
 List of pointers used to form the prec1 modes.
 
PtrList< volScalarField > Tmodes
 List of pointers used to form the temperature modes.
 
PtrList< volScalarField > Dec1modes
 List of pointers used to form the dec1 modes.
 
PtrList< volScalarField > Dec2modes
 List of pointers used to form the dec2 modes.
 
PtrList< volScalarField > Dec3modes
 List of pointers used to form the dec3 modes.
 
PtrList< volScalarField > vmodes
 List of pointers used to form the v modes.
 
PtrList< volScalarField > Dmodes
 List of pointers used to form the D modes.
 
PtrList< volScalarField > NSFmodes
 List of pointers used to form the NSF snapshosts matrix.
 
PtrList< volScalarField > Amodes
 List of pointers used to form the A snapshosts matrix.
 
PtrList< volScalarField > SPmodes
 List of pointers used to form the SP snapshosts matrix.
 
PtrList< volScalarField > TXSmodes
 List of pointers used to form the SP snapshosts matrix.
 
Eigen::MatrixXd B_matrix
 Diffusion term.
 
Eigen::MatrixXd M_matrix
 Mass Matrix.
 
Eigen::MatrixXd K_matrix
 Gradient of pressure matrix.
 
List< Eigen::MatrixXd > C_matrix
 Non linear term.
 
Eigen::MatrixXd P_matrix
 Div of velocity.
 
Eigen::MatrixXd D_matrix
 Laplacian term PPE.
 
List< Eigen::MatrixXd > G_matrix
 Divergence of momentum PPE.
 
Eigen::MatrixXd BC1_matrix
 PPE BC1.
 
List< Eigen::MatrixXd > BC2_matrix
 PPE BC2.
 
Eigen::MatrixXd BC3_matrix
 PPE BC3.
 
List< Eigen::MatrixXd > LF_matrix
 laplacian_flux
 
Eigen::MatrixXd MF_matrix
 mass flux
 
List< Eigen::MatrixXd > PF_matrix
 production flux
 
List< Eigen::MatrixXd > AF_matrix
 absorption flux
 
ITHACAparameterspara
 
Eigen::MatrixXd PS1_matrix
 prec_source 1
 
Eigen::MatrixXd PS2_matrix
 prec_source 2
 
Eigen::MatrixXd PS3_matrix
 prec_source 3
 
Eigen::MatrixXd PS4_matrix
 prec_source 4
 
Eigen::MatrixXd PS5_matrix
 prec_source 5
 
Eigen::MatrixXd PS6_matrix
 prec_source 6
 
Eigen::MatrixXd PS7_matrix
 prec_source 7
 
Eigen::MatrixXd PS8_matrix
 prec_source 8
 
List< Eigen::MatrixXd > ST1_matrix
 precursor stream term-1
 
List< Eigen::MatrixXd > ST2_matrix
 precursor stream term-2
 
List< Eigen::MatrixXd > ST3_matrix
 precursor stream term-3
 
List< Eigen::MatrixXd > ST4_matrix
 precursor stream term-4
 
List< Eigen::MatrixXd > ST5_matrix
 precursor stream term-5
 
List< Eigen::MatrixXd > ST6_matrix
 precursor stream term-6
 
List< Eigen::MatrixXd > ST7_matrix
 precursor stream term-7
 
List< Eigen::MatrixXd > ST8_matrix
 precursor stream term-8
 
Eigen::MatrixXd MP1_matrix
 precursor mass term-1
 
Eigen::MatrixXd MP2_matrix
 precursor mass term-2
 
Eigen::MatrixXd MP3_matrix
 precursor mass term-3
 
Eigen::MatrixXd MP4_matrix
 precursor mass term-4
 
Eigen::MatrixXd MP5_matrix
 precursor mass term-5
 
Eigen::MatrixXd MP6_matrix
 precursor mass term-6
 
Eigen::MatrixXd MP7_matrix
 precursor mass term-7
 
Eigen::MatrixXd MP8_matrix
 precursor mass term-8
 
Eigen::MatrixXd LP1_matrix
 precursor laplacian term-1
 
Eigen::MatrixXd LP2_matrix
 precursor laplacian term-2
 
Eigen::MatrixXd LP3_matrix
 precursor laplacian term-3
 
Eigen::MatrixXd LP4_matrix
 precursor laplacian term-4
 
Eigen::MatrixXd LP5_matrix
 precursor laplacian term-5
 
Eigen::MatrixXd LP6_matrix
 precursor laplacian term-6
 
Eigen::MatrixXd LP7_matrix
 precursor laplacian term-7
 
Eigen::MatrixXd LP8_matrix
 precursor laplacian term-8
 
List< Eigen::MatrixXd > FS1_matrix
 precursor flux source term-1
 
List< Eigen::MatrixXd > FS2_matrix
 precursor flux source term-2
 
List< Eigen::MatrixXd > FS3_matrix
 precursor flux source term-3
 
List< Eigen::MatrixXd > FS4_matrix
 precursor flux source term-4
 
List< Eigen::MatrixXd > FS5_matrix
 precursor flux source term-5
 
List< Eigen::MatrixXd > FS6_matrix
 precursor flux source term-6
 
List< Eigen::MatrixXd > FS7_matrix
 precursor flux source term-7
 
List< Eigen::MatrixXd > FS8_matrix
 precursor flux source term-8
 
List< Eigen::MatrixXd > SD1_matrix
 decay heat stream term-1
 
List< Eigen::MatrixXd > SD2_matrix
 decay heat stream term-2
 
List< Eigen::MatrixXd > SD3_matrix
 decay heat stream term-3
 
Eigen::MatrixXd MD1_matrix
 decay heat mass term-1
 
Eigen::MatrixXd MD2_matrix
 decay heat mass term-2
 
Eigen::MatrixXd MD3_matrix
 decay heat mass term-3
 
Eigen::MatrixXd LD1_matrix
 decay heat laplacian term-1
 
Eigen::MatrixXd LD2_matrix
 decay heat laplacian term-2
 
Eigen::MatrixXd LD3_matrix
 decay heat laplacian term-3
 
List< Eigen::MatrixXd > DFS1_matrix
 decay heat flux source term-1
 
List< Eigen::MatrixXd > DFS2_matrix
 decay heat flux source term-2
 
List< Eigen::MatrixXd > DFS3_matrix
 decay heat flux source term-3
 
Eigen::MatrixXd TM_matrix
 temperature mass term
 
List< Eigen::MatrixXd > TS_matrix
 temperature stream term
 
Eigen::MatrixXd LT_matrix
 temperature laplacian term
 
List< Eigen::MatrixXd > TXS_matrix
 temperature flux source term TXS
 
List< Eigen::MatrixXd > THS1_matrix
 temperature decay heat source term-1
 
List< Eigen::MatrixXd > THS2_matrix
 temperature decay heat source term-2
 
List< Eigen::MatrixXd > THS3_matrix
 temperature decay heat source term-3
 
label NUmodes
 Number of modes adopted during Galerkin projection.
 
label NPmodes
 
label NFluxmodes
 
Eigen::VectorXi NPrecmodes
 
Eigen::VectorXi NDecmodes
 
label NTmodes
 
label NCmodes
 
PtrList< volVectorField > liftfield
 List of pointers used to form the list of lifting functions.
 
PtrList< volScalarField > liftfieldT
 List of pointers used to form the list of lifting functions.
 
PtrList< volVectorField > Uomfield
 List of pointers used to form the homogeneous velocity snapshots.
 
PtrList< volScalarField > Tomfield
 List of pointers used to form the homogeneous velocity snapshots.
 
bool homboolU = false
 boolean variables to check if the homogenization of U and T is performed (true) or not (false)
 
bool homboolT = false
 
std::vector< SPLINTER::DataTable * > SAMPLES_v
 
std::vector< SPLINTER::DataTable * > SAMPLES_D
 
std::vector< SPLINTER::DataTable * > SAMPLES_NSF
 
std::vector< SPLINTER::DataTable * > SAMPLES_A
 
std::vector< SPLINTER::DataTable * > SAMPLES_SP
 
std::vector< SPLINTER::DataTable * > SAMPLES_TXS
 
std::vector< SPLINTER::RBFSpline * > rbfsplines_v
 
std::vector< SPLINTER::RBFSpline * > rbfsplines_D
 
std::vector< SPLINTER::RBFSpline * > rbfsplines_NSF
 
std::vector< SPLINTER::RBFSpline * > rbfsplines_A
 
std::vector< SPLINTER::RBFSpline * > rbfsplines_SP
 
std::vector< SPLINTER::RBFSpline * > rbfsplines_TXS
 
- Public Attributes inherited from reductionProblem
label Pnumber
 Number of parameters.
 
label Tnumber
 Dimension of the training set (used only when gerating parameters without input)
 
Eigen::MatrixXd mu
 Row matrix of parameters.
 
Eigen::MatrixXd mu_range
 Range of the parameter spaces.
 
Eigen::MatrixXd mu_samples
 Matrix of parameters to be used for PODI, where each row corresponds to a sample point. In this matrix the time dimension is regarded as a parameter for unsteady problems.
 
double mu_cur
 Current value of the parameter.
 
bool podex
 Boolean variable, it is 1 if the POD has already been computed, else 0.
 
bool offline
 Boolean variable, it is 1 if the Offline phase has already been computed, else 0.
 
IOdictionary * ITHACAdict
 dictionary to store input output infos
 
autoPtr< argList > _args
 argList
 
ITHACAparallelparal
 parallel handling
 
label folderN = 1
 Counter to save intermediate steps in the correct folder, for unsteady and some stationary cases.
 
label counter = 1
 Counter used for the output of the full order solutions.
 
Eigen::MatrixXi inletIndex
 Matrix that contains informations about the inlet boundaries.
 
Eigen::MatrixXi inletPatch
 Matrix that contains informations about the inlet boundaries without specifing the direction Rows = Number of parametrized boundary conditions
Cols = 1
Example:
example.inletIndex.resize(2, 1);
example.inletIndex(0, 0) = 0;
example.inletIndex(1, 0) = 1;
Means that there are two parametrized boundary conditions of which the first row is of patch 0 and the second row of patch 1.
 
Eigen::MatrixXi inletIndexT
 
- Public Attributes inherited from UnsteadyProblem
scalar startTime
 Start Time (initial time to start storing the snapshots)
 
scalar finalTime
 Final time (final time of the simulation and consequently of the acquisition of the snapshots)
 
scalar timeStep
 Time step of the simulation.
 
scalar writeEvery = timeStep
 Time step of the writing procedure.
 
scalar nextWrite
 Auxiliary variable to store the next writing instant.
 

Additional Inherited Members

- Protected Member Functions inherited from usmsrProblem
void changePrecsBC ()
 Method to change the precursors' "precinIndex" (i.e.
 
void computePrecsBC (label call)
 Method to compute the precursors inlet bc as: prec_i(x=outlet,t)exp(-lam_i*tau) where prec_i(x=outlet,t-tau) is the averege over the outlet patch identified by "precoutIndex" values are saved in bc_prec(i,call)
 
void assignPrecsBC (label call, label Ntau)
 Method to assign the inlet BC to all precursors it assigns prec_i(x=inlet,t)=prec_i(x=outlet,t-tau)exp(-lam_i*tau) in practice bc_prec(i,call-Ntau) is assigned to prec_i patch identified by "precinIndex".
 
- Protected Member Functions inherited from msrProblem
PtrList< volScalarField > choose_group (string field, label ith)
 method to choose one field among precs & decs field can be "prec" or "dec" only if field==prec then ith can range from 1 to 8 included else ith can range from 1 to 3
 
template<typename M >
void savegroupMatrix (string nome, label n, word folder, M matrice)
 method to save matrices for precs and decs M can be an Eigen::MatrixXd or List<Eigen::MatrixXd> nome is the name of the matrix, n can vary from 1 to 8 and it appended to matrix's name to store the matrix belonging to group n folder is the folder in which the matrix is stored
 

Detailed Description

Definition at line 15 of file 15MSR_cavity.C.

Constructor & Destructor Documentation

◆ msr() [1/2]

msr::msr ( int argc,
char * argv[] )
inlineexplicit

Definition at line 18 of file 15MSR_cavity.C.

◆ msr() [2/2]

msr::msr ( int argc,
char * argv[] )
inlineexplicit

Definition at line 18 of file 16MSR_FOMSA.C.

Member Function Documentation

◆ offlineSolve() [1/2]

void msr::offlineSolve ( )
inline

Definition at line 93 of file 15MSR_cavity.C.

◆ offlineSolve() [2/2]

void msr::offlineSolve ( std::string dir)
inline

Definition at line 93 of file 16MSR_FOMSA.C.

Member Data Documentation

◆ A

volScalarField & msr::A

Definition at line 62 of file 15MSR_cavity.C.

◆ D

volScalarField & msr::D

Definition at line 60 of file 15MSR_cavity.C.

◆ dec1

volScalarField & msr::dec1

Definition at line 56 of file 15MSR_cavity.C.

◆ dec2

volScalarField & msr::dec2

Definition at line 57 of file 15MSR_cavity.C.

◆ dec3

volScalarField & msr::dec3

Definition at line 58 of file 15MSR_cavity.C.

◆ flux

volScalarField & msr::flux

Definition at line 46 of file 15MSR_cavity.C.

◆ NCproj

int msr::NCproj = para->ITHACAdict->lookupOrDefault<int>("NCproj", 2)

Definition at line 82 of file 15MSR_cavity.C.

◆ NDecproj1

int msr::NDecproj1 = para->ITHACAdict->lookupOrDefault<int>("NDecproj1", 2)

Definition at line 79 of file 15MSR_cavity.C.

◆ NDecproj2

int msr::NDecproj2 = para->ITHACAdict->lookupOrDefault<int>("NDecproj2", 2)

Definition at line 80 of file 15MSR_cavity.C.

◆ NDecproj3

int msr::NDecproj3 = para->ITHACAdict->lookupOrDefault<int>("NDecproj3", 2)

Definition at line 81 of file 15MSR_cavity.C.

◆ NFluxproj

int msr::NFluxproj = para->ITHACAdict->lookupOrDefault<int>("NFluxproj", 2)

Definition at line 69 of file 15MSR_cavity.C.

◆ NPproj

int msr::NPproj = para->ITHACAdict->lookupOrDefault<int>("NPproj", 2)

Definition at line 68 of file 15MSR_cavity.C.

◆ NPrecproj1

int msr::NPrecproj1 = para->ITHACAdict->lookupOrDefault<int>("NPrecproj1", 2)

Definition at line 70 of file 15MSR_cavity.C.

◆ NPrecproj2

int msr::NPrecproj2 = para->ITHACAdict->lookupOrDefault<int>("NPrecproj2", 2)

Definition at line 71 of file 15MSR_cavity.C.

◆ NPrecproj3

int msr::NPrecproj3 = para->ITHACAdict->lookupOrDefault<int>("NPrecproj3", 2)

Definition at line 72 of file 15MSR_cavity.C.

◆ NPrecproj4

int msr::NPrecproj4 = para->ITHACAdict->lookupOrDefault<int>("NPrecproj4", 2)

Definition at line 73 of file 15MSR_cavity.C.

◆ NPrecproj5

int msr::NPrecproj5 = para->ITHACAdict->lookupOrDefault<int>("NPrecproj5", 2)

Definition at line 74 of file 15MSR_cavity.C.

◆ NPrecproj6

int msr::NPrecproj6 = para->ITHACAdict->lookupOrDefault<int>("NPrecproj6", 2)

Definition at line 75 of file 15MSR_cavity.C.

◆ NPrecproj7

int msr::NPrecproj7 = para->ITHACAdict->lookupOrDefault<int>("NPrecproj7", 2)

Definition at line 76 of file 15MSR_cavity.C.

◆ NPrecproj8

int msr::NPrecproj8 = para->ITHACAdict->lookupOrDefault<int>("NPrecproj8", 2)

Definition at line 77 of file 15MSR_cavity.C.

◆ NSF

volScalarField & msr::NSF

Definition at line 61 of file 15MSR_cavity.C.

◆ NTproj

int msr::NTproj = para->ITHACAdict->lookupOrDefault<int>("NTproj", 2)

Definition at line 78 of file 15MSR_cavity.C.

◆ NUproj

int msr::NUproj = para->ITHACAdict->lookupOrDefault<int>("NUproj", 2)

Definition at line 67 of file 15MSR_cavity.C.

◆ p

volScalarField & msr::p

Definition at line 45 of file 15MSR_cavity.C.

◆ para

Definition at line 66 of file 15MSR_cavity.C.

◆ prec1

volScalarField & msr::prec1

Definition at line 47 of file 15MSR_cavity.C.

◆ prec2

volScalarField & msr::prec2

Definition at line 48 of file 15MSR_cavity.C.

◆ prec3

volScalarField & msr::prec3

Definition at line 49 of file 15MSR_cavity.C.

◆ prec4

volScalarField & msr::prec4

Definition at line 50 of file 15MSR_cavity.C.

◆ prec5

volScalarField & msr::prec5

Definition at line 51 of file 15MSR_cavity.C.

◆ prec6

volScalarField & msr::prec6

Definition at line 52 of file 15MSR_cavity.C.

◆ prec7

volScalarField & msr::prec7

Definition at line 53 of file 15MSR_cavity.C.

◆ prec8

volScalarField & msr::prec8

Definition at line 54 of file 15MSR_cavity.C.

◆ r1

double msr::r1 = _beta1().value() / _betaTot().value()

Definition at line 84 of file 15MSR_cavity.C.

◆ r2

double msr::r2 = _beta2().value() / _betaTot().value()

Definition at line 85 of file 15MSR_cavity.C.

◆ r3

double msr::r3 = _beta3().value() / _betaTot().value()

Definition at line 86 of file 15MSR_cavity.C.

◆ r4

double msr::r4 = _beta4().value() / _betaTot().value()

Definition at line 87 of file 15MSR_cavity.C.

◆ r5

double msr::r5 = _beta5().value() / _betaTot().value()

Definition at line 88 of file 15MSR_cavity.C.

◆ r6

double msr::r6 = _beta6().value() / _betaTot().value()

Definition at line 89 of file 15MSR_cavity.C.

◆ r7

double msr::r7 = _beta7().value() / _betaTot().value()

Definition at line 90 of file 15MSR_cavity.C.

◆ r8

double msr::r8 = _beta8().value() / _betaTot().value()

Definition at line 91 of file 15MSR_cavity.C.

◆ SP

volScalarField & msr::SP

Definition at line 63 of file 15MSR_cavity.C.

◆ T

volScalarField & msr::T

Definition at line 55 of file 15MSR_cavity.C.

◆ TXS

volScalarField & msr::TXS

Definition at line 64 of file 15MSR_cavity.C.

◆ U

volVectorField & msr::U

Definition at line 44 of file 15MSR_cavity.C.

◆ v

volScalarField & msr::v

Definition at line 59 of file 15MSR_cavity.C.


The documentation for this class was generated from the following files: