#include <ReducedMSR.H>
Public Member Functions | |
reducedMSR () | |
reducedMSR (msrProblem &problem) | |
~reducedMSR () | |
void | solveOnline (Eigen::MatrixXd vel_now, Eigen::MatrixXd temp_now, Eigen::VectorXd mu_online) |
Method to perform an online solve using a PPE stabilisation method. | |
void | clearFields () |
Method to clear all the fields of MSR (sets the size to zero) | |
void | reconstructAP (fileName folder="./ITHACAOutput/online_rec", int printevery=1) |
Methods to reconstruct a solution from an online solve with a PPE stabilisation technique. | |
void | reconstruct_fd (fileName folder="./ITHACAOutput/online_rec", int printevery=1) |
reconstruct fluid-dynamics | |
void | reconstruct_n (fileName folder="./ITHACAOutput/online_rec", int printevery=1) |
reconstruct neutronics | |
void | reconstruct_t (fileName folder="./ITHACAOutput/online_rec", int printevery=1) |
reconstruct thermal fields | |
void | reconstruct_C (fileName folder="./ITHACAOutput/online_rec", int printevery=1) |
reconstruct temperature dependent constants | |
Public Member Functions inherited from reducedProblem | |
reducedProblem () | |
Construct Null. | |
virtual | ~reducedProblem () |
reducedProblem (reductionProblem &problem) | |
Construct with reduced Problem. | |
virtual void | solveOnline () |
Virtual Method to perform and online Solve. | |
Public Attributes | |
Eigen::VectorXd | y_old |
Vector to store the previous solution during the Newton procedure. | |
Eigen::VectorXd | w_old |
Eigen::VectorXd | z_old |
Eigen::VectorXd | y |
Vector to store the solution during the Newton procedure. | |
Eigen::VectorXd | w |
Eigen::VectorXd | z |
scalar | nu |
characteristic constants of the problem | |
scalar | rho |
scalar | Pr |
scalar | Sc |
scalar | d |
scalar | m |
scalar | nsf |
scalar | a |
scalar | Keff |
scalar | iv |
scalar | l1 |
scalar | l2 |
scalar | l3 |
scalar | l4 |
scalar | l5 |
scalar | l6 |
scalar | l7 |
scalar | l8 |
scalar | b1 |
scalar | b2 |
scalar | b3 |
scalar | b4 |
scalar | b5 |
scalar | b6 |
scalar | b7 |
scalar | b8 |
scalar | btot |
scalar | cp |
scalar | dl1 |
scalar | dl2 |
scalar | dl3 |
scalar | db1 |
scalar | db2 |
scalar | db3 |
scalar | dbtot |
scalar | sp |
List< Eigen::MatrixXd > | online_solution_fd |
List of Eigen matrices to store the online solution. | |
List< Eigen::MatrixXd > | online_solution_n |
List< Eigen::MatrixXd > | online_solution_t |
List< Eigen::MatrixXd > | online_solution_C |
PtrList< volVectorField > | Umodes |
List of pointers to store the modes for each field. | |
PtrList< volScalarField > | Pmodes |
PtrList< volScalarField > | Fluxmodes |
PtrList< volScalarField > | Prec1modes |
PtrList< volScalarField > | Prec2modes |
PtrList< volScalarField > | Prec3modes |
PtrList< volScalarField > | Prec4modes |
PtrList< volScalarField > | Prec5modes |
PtrList< volScalarField > | Prec6modes |
PtrList< volScalarField > | Prec7modes |
PtrList< volScalarField > | Prec8modes |
PtrList< volScalarField > | Tmodes |
PtrList< volScalarField > | Dec1modes |
PtrList< volScalarField > | Dec2modes |
PtrList< volScalarField > | Dec3modes |
PtrList< volScalarField > | vmodes |
PtrList< volScalarField > | Dmodes |
PtrList< volScalarField > | NSFmodes |
PtrList< volScalarField > | Amodes |
PtrList< volScalarField > | SPmodes |
PtrList< volScalarField > | TXSmodes |
PtrList< volVectorField > | Usnapshots |
List of pointers to store the snapshots for each field. | |
PtrList< volScalarField > | Psnapshots |
PtrList< volScalarField > | Fluxsnapshots |
PtrList< volScalarField > | Prec1snapshots |
PtrList< volScalarField > | Prec2snapshots |
PtrList< volScalarField > | Prec3snapshots |
PtrList< volScalarField > | Prec4snapshots |
PtrList< volScalarField > | Prec5snapshots |
PtrList< volScalarField > | Prec6snapshots |
PtrList< volScalarField > | Prec7snapshots |
PtrList< volScalarField > | Prec8snapshots |
PtrList< volScalarField > | Tsnapshots |
PtrList< volScalarField > | Dec1snapshots |
PtrList< volScalarField > | Dec2snapshots |
PtrList< volScalarField > | Dec3snapshots |
PtrList< volScalarField > | vsnapshots |
PtrList< volScalarField > | Dsnapshots |
PtrList< volScalarField > | NSFsnapshots |
PtrList< volScalarField > | Asnapshots |
PtrList< volScalarField > | SPsnapshots |
PtrList< volScalarField > | TXSsnapshots |
PtrList< volVectorField > | UREC |
Recontructed fields. | |
PtrList< volScalarField > | PREC |
PtrList< volScalarField > | FLUXREC |
PtrList< volScalarField > | PREC1REC |
PtrList< volScalarField > | PREC2REC |
PtrList< volScalarField > | PREC3REC |
PtrList< volScalarField > | PREC4REC |
PtrList< volScalarField > | PREC5REC |
PtrList< volScalarField > | PREC6REC |
PtrList< volScalarField > | PREC7REC |
PtrList< volScalarField > | PREC8REC |
PtrList< volScalarField > | TREC |
PtrList< volScalarField > | DEC1REC |
PtrList< volScalarField > | DEC2REC |
PtrList< volScalarField > | DEC3REC |
PtrList< volScalarField > | POWERDENSREC |
PtrList< volScalarField > | vREC |
PtrList< volScalarField > | DREC |
PtrList< volScalarField > | NSFREC |
PtrList< volScalarField > | AREC |
PtrList< volScalarField > | SPREC |
PtrList< volScalarField > | TXSREC |
newton_msr_fd | newton_object_fd |
Newton object used to solve the non linear problem. | |
newton_msr_n | newton_object_n |
newton_msr_t | newton_object_t |
msrProblem * | problem |
Pointer to the FOM problem. | |
int | Nphi_u |
Number of modes for each field. | |
int | Nphi_p |
int | Nphi_flux |
int | Nphi_prec1 |
int | Nphi_prec2 |
int | Nphi_prec3 |
int | Nphi_prec4 |
int | Nphi_prec5 |
int | Nphi_prec6 |
int | Nphi_prec7 |
int | Nphi_prec8 |
int | Nphi_T |
int | Nphi_dec1 |
int | Nphi_dec2 |
int | Nphi_dec3 |
int | Nphi_const |
bool | recall = false |
boolean variable to check if the user wants to reconstruct all the three physics of the problem | |
int | N_BC |
Number of parametrized boundary conditions. | |
int | N_BCt |
int | count_online_solve = 1 |
Counter to count the online solutions. | |
Public Attributes inherited from reducedProblem | |
scalar | nu |
Viscosity. | |
reductionProblem * | problem |
Pointer to FOAM problem. | |
Protected Member Functions | |
void | loadConstants (msrProblem *problem) |
Method to load all the constants needed in the ROM from ///the FOM. | |
Additional Inherited Members | |
Static Public Member Functions inherited from reducedProblem | |
static Eigen::MatrixXd | solveLinearSys (List< Eigen::MatrixXd > LinSys, Eigen::MatrixXd x, Eigen::VectorXd &residual, const Eigen::MatrixXd &bc=Eigen::MatrixXd::Zero(0, 0), const std::string solverType="fullPivLu") |
Linear system solver for the online problem. | |
static Eigen::MatrixXd | solveLinearSys (List< Eigen::MatrixXd > LinSys, Eigen::MatrixXd x, Eigen::VectorXd &residual, const std::string solverType) |
Linear system solver for the online problem. | |
Definition at line 189 of file ReducedMSR.H.
reducedMSR::reducedMSR | ( | ) |
Definition at line 27 of file ReducedMSR.C.
|
explicit |
Definition at line 31 of file ReducedMSR.C.
|
inline |
Definition at line 196 of file ReducedMSR.H.
void reducedMSR::clearFields | ( | ) |
Method to clear all the fields of MSR (sets the size to zero)
Definition at line 1065 of file ReducedMSR.C.
|
protected |
Method to load all the constants needed in the ROM from ///the FOM.
Definition at line 1032 of file ReducedMSR.C.
void reducedMSR::reconstruct_C | ( | fileName | folder = "./ITHACAOutput/online_rec", |
int | printevery = 1 ) |
reconstruct temperature dependent constants
Definition at line 943 of file ReducedMSR.C.
void reducedMSR::reconstruct_fd | ( | fileName | folder = "./ITHACAOutput/online_rec", |
int | printevery = 1 ) |
reconstruct fluid-dynamics
Definition at line 706 of file ReducedMSR.C.
void reducedMSR::reconstruct_n | ( | fileName | folder = "./ITHACAOutput/online_rec", |
int | printevery = 1 ) |
reconstruct neutronics
Definition at line 751 of file ReducedMSR.C.
void reducedMSR::reconstruct_t | ( | fileName | folder = "./ITHACAOutput/online_rec", |
int | printevery = 1 ) |
reconstruct thermal fields
Definition at line 867 of file ReducedMSR.C.
void reducedMSR::reconstructAP | ( | fileName | folder = "./ITHACAOutput/online_rec", |
int | printevery = 1 ) |
Methods to reconstruct a solution from an online solve with a PPE stabilisation technique.
stabilisation method folder: The folder where to output the solutions printevery=x: save the solution every x timesteps reconstruct all the three physics together:
Definition at line 694 of file ReducedMSR.C.
void reducedMSR::solveOnline | ( | Eigen::MatrixXd | vel_now, |
Eigen::MatrixXd | temp_now, | ||
Eigen::VectorXd | mu_online ) |
Method to perform an online solve using a PPE stabilisation method.
Definition at line 521 of file ReducedMSR.C.
scalar reducedMSR::a |
Definition at line 219 of file ReducedMSR.H.
PtrList<volScalarField> reducedMSR::Amodes |
Definition at line 277 of file ReducedMSR.H.
PtrList<volScalarField> reducedMSR::AREC |
Definition at line 325 of file ReducedMSR.H.
PtrList<volScalarField> reducedMSR::Asnapshots |
Definition at line 301 of file ReducedMSR.H.
scalar reducedMSR::b1 |
Definition at line 230 of file ReducedMSR.H.
scalar reducedMSR::b2 |
Definition at line 231 of file ReducedMSR.H.
scalar reducedMSR::b3 |
Definition at line 232 of file ReducedMSR.H.
scalar reducedMSR::b4 |
Definition at line 233 of file ReducedMSR.H.
scalar reducedMSR::b5 |
Definition at line 234 of file ReducedMSR.H.
scalar reducedMSR::b6 |
Definition at line 235 of file ReducedMSR.H.
scalar reducedMSR::b7 |
Definition at line 236 of file ReducedMSR.H.
scalar reducedMSR::b8 |
Definition at line 237 of file ReducedMSR.H.
scalar reducedMSR::btot |
Definition at line 238 of file ReducedMSR.H.
int reducedMSR::count_online_solve = 1 |
Counter to count the online solutions.
Definition at line 364 of file ReducedMSR.H.
scalar reducedMSR::cp |
Definition at line 240 of file ReducedMSR.H.
scalar reducedMSR::d |
Definition at line 216 of file ReducedMSR.H.
scalar reducedMSR::db1 |
Definition at line 244 of file ReducedMSR.H.
scalar reducedMSR::db2 |
Definition at line 245 of file ReducedMSR.H.
scalar reducedMSR::db3 |
Definition at line 246 of file ReducedMSR.H.
scalar reducedMSR::dbtot |
Definition at line 247 of file ReducedMSR.H.
PtrList<volScalarField> reducedMSR::Dec1modes |
Definition at line 271 of file ReducedMSR.H.
PtrList<volScalarField> reducedMSR::DEC1REC |
Definition at line 318 of file ReducedMSR.H.
PtrList<volScalarField> reducedMSR::Dec1snapshots |
Definition at line 295 of file ReducedMSR.H.
PtrList<volScalarField> reducedMSR::Dec2modes |
Definition at line 272 of file ReducedMSR.H.
PtrList<volScalarField> reducedMSR::DEC2REC |
Definition at line 319 of file ReducedMSR.H.
PtrList<volScalarField> reducedMSR::Dec2snapshots |
Definition at line 296 of file ReducedMSR.H.
PtrList<volScalarField> reducedMSR::Dec3modes |
Definition at line 273 of file ReducedMSR.H.
PtrList<volScalarField> reducedMSR::DEC3REC |
Definition at line 320 of file ReducedMSR.H.
PtrList<volScalarField> reducedMSR::Dec3snapshots |
Definition at line 297 of file ReducedMSR.H.
scalar reducedMSR::dl1 |
Definition at line 241 of file ReducedMSR.H.
scalar reducedMSR::dl2 |
Definition at line 242 of file ReducedMSR.H.
scalar reducedMSR::dl3 |
Definition at line 243 of file ReducedMSR.H.
PtrList<volScalarField> reducedMSR::Dmodes |
Definition at line 275 of file ReducedMSR.H.
PtrList<volScalarField> reducedMSR::DREC |
Definition at line 323 of file ReducedMSR.H.
PtrList<volScalarField> reducedMSR::Dsnapshots |
Definition at line 299 of file ReducedMSR.H.
PtrList<volScalarField> reducedMSR::Fluxmodes |
Definition at line 261 of file ReducedMSR.H.
PtrList<volScalarField> reducedMSR::FLUXREC |
Definition at line 308 of file ReducedMSR.H.
PtrList<volScalarField> reducedMSR::Fluxsnapshots |
Definition at line 285 of file ReducedMSR.H.
scalar reducedMSR::iv |
Definition at line 221 of file ReducedMSR.H.
scalar reducedMSR::Keff |
Definition at line 220 of file ReducedMSR.H.
scalar reducedMSR::l1 |
Definition at line 222 of file ReducedMSR.H.
scalar reducedMSR::l2 |
Definition at line 223 of file ReducedMSR.H.
scalar reducedMSR::l3 |
Definition at line 224 of file ReducedMSR.H.
scalar reducedMSR::l4 |
Definition at line 225 of file ReducedMSR.H.
scalar reducedMSR::l5 |
Definition at line 226 of file ReducedMSR.H.
scalar reducedMSR::l6 |
Definition at line 227 of file ReducedMSR.H.
scalar reducedMSR::l7 |
Definition at line 228 of file ReducedMSR.H.
scalar reducedMSR::l8 |
Definition at line 229 of file ReducedMSR.H.
scalar reducedMSR::m |
Definition at line 217 of file ReducedMSR.H.
int reducedMSR::N_BC |
Number of parametrized boundary conditions.
Definition at line 360 of file ReducedMSR.H.
int reducedMSR::N_BCt |
Definition at line 361 of file ReducedMSR.H.
newton_msr_fd reducedMSR::newton_object_fd |
Newton object used to solve the non linear problem.
Definition at line 330 of file ReducedMSR.H.
newton_msr_n reducedMSR::newton_object_n |
Definition at line 331 of file ReducedMSR.H.
newton_msr_t reducedMSR::newton_object_t |
Definition at line 332 of file ReducedMSR.H.
int reducedMSR::Nphi_const |
Definition at line 353 of file ReducedMSR.H.
int reducedMSR::Nphi_dec1 |
Definition at line 350 of file ReducedMSR.H.
int reducedMSR::Nphi_dec2 |
Definition at line 351 of file ReducedMSR.H.
int reducedMSR::Nphi_dec3 |
Definition at line 352 of file ReducedMSR.H.
int reducedMSR::Nphi_flux |
Definition at line 340 of file ReducedMSR.H.
int reducedMSR::Nphi_p |
Definition at line 339 of file ReducedMSR.H.
int reducedMSR::Nphi_prec1 |
Definition at line 341 of file ReducedMSR.H.
int reducedMSR::Nphi_prec2 |
Definition at line 342 of file ReducedMSR.H.
int reducedMSR::Nphi_prec3 |
Definition at line 343 of file ReducedMSR.H.
int reducedMSR::Nphi_prec4 |
Definition at line 344 of file ReducedMSR.H.
int reducedMSR::Nphi_prec5 |
Definition at line 345 of file ReducedMSR.H.
int reducedMSR::Nphi_prec6 |
Definition at line 346 of file ReducedMSR.H.
int reducedMSR::Nphi_prec7 |
Definition at line 347 of file ReducedMSR.H.
int reducedMSR::Nphi_prec8 |
Definition at line 348 of file ReducedMSR.H.
int reducedMSR::Nphi_T |
Definition at line 349 of file ReducedMSR.H.
int reducedMSR::Nphi_u |
Number of modes for each field.
Definition at line 338 of file ReducedMSR.H.
scalar reducedMSR::nsf |
Definition at line 218 of file ReducedMSR.H.
PtrList<volScalarField> reducedMSR::NSFmodes |
Definition at line 276 of file ReducedMSR.H.
PtrList<volScalarField> reducedMSR::NSFREC |
Definition at line 324 of file ReducedMSR.H.
PtrList<volScalarField> reducedMSR::NSFsnapshots |
Definition at line 300 of file ReducedMSR.H.
scalar reducedMSR::nu |
characteristic constants of the problem
Definition at line 211 of file ReducedMSR.H.
List< Eigen::MatrixXd> reducedMSR::online_solution_C |
Definition at line 256 of file ReducedMSR.H.
List< Eigen::MatrixXd> reducedMSR::online_solution_fd |
List of Eigen matrices to store the online solution.
Definition at line 253 of file ReducedMSR.H.
List< Eigen::MatrixXd> reducedMSR::online_solution_n |
Definition at line 254 of file ReducedMSR.H.
List< Eigen::MatrixXd> reducedMSR::online_solution_t |
Definition at line 255 of file ReducedMSR.H.
PtrList<volScalarField> reducedMSR::Pmodes |
Definition at line 260 of file ReducedMSR.H.
PtrList<volScalarField> reducedMSR::POWERDENSREC |
Definition at line 321 of file ReducedMSR.H.
scalar reducedMSR::Pr |
Definition at line 213 of file ReducedMSR.H.
PtrList<volScalarField> reducedMSR::PREC |
Definition at line 307 of file ReducedMSR.H.
PtrList<volScalarField> reducedMSR::Prec1modes |
Definition at line 262 of file ReducedMSR.H.
PtrList<volScalarField> reducedMSR::PREC1REC |
Definition at line 309 of file ReducedMSR.H.
PtrList<volScalarField> reducedMSR::Prec1snapshots |
Definition at line 286 of file ReducedMSR.H.
PtrList<volScalarField> reducedMSR::Prec2modes |
Definition at line 263 of file ReducedMSR.H.
PtrList<volScalarField> reducedMSR::PREC2REC |
Definition at line 310 of file ReducedMSR.H.
PtrList<volScalarField> reducedMSR::Prec2snapshots |
Definition at line 287 of file ReducedMSR.H.
PtrList<volScalarField> reducedMSR::Prec3modes |
Definition at line 264 of file ReducedMSR.H.
PtrList<volScalarField> reducedMSR::PREC3REC |
Definition at line 311 of file ReducedMSR.H.
PtrList<volScalarField> reducedMSR::Prec3snapshots |
Definition at line 288 of file ReducedMSR.H.
PtrList<volScalarField> reducedMSR::Prec4modes |
Definition at line 265 of file ReducedMSR.H.
PtrList<volScalarField> reducedMSR::PREC4REC |
Definition at line 312 of file ReducedMSR.H.
PtrList<volScalarField> reducedMSR::Prec4snapshots |
Definition at line 289 of file ReducedMSR.H.
PtrList<volScalarField> reducedMSR::Prec5modes |
Definition at line 266 of file ReducedMSR.H.
PtrList<volScalarField> reducedMSR::PREC5REC |
Definition at line 313 of file ReducedMSR.H.
PtrList<volScalarField> reducedMSR::Prec5snapshots |
Definition at line 290 of file ReducedMSR.H.
PtrList<volScalarField> reducedMSR::Prec6modes |
Definition at line 267 of file ReducedMSR.H.
PtrList<volScalarField> reducedMSR::PREC6REC |
Definition at line 314 of file ReducedMSR.H.
PtrList<volScalarField> reducedMSR::Prec6snapshots |
Definition at line 291 of file ReducedMSR.H.
PtrList<volScalarField> reducedMSR::Prec7modes |
Definition at line 268 of file ReducedMSR.H.
PtrList<volScalarField> reducedMSR::PREC7REC |
Definition at line 315 of file ReducedMSR.H.
PtrList<volScalarField> reducedMSR::Prec7snapshots |
Definition at line 292 of file ReducedMSR.H.
PtrList<volScalarField> reducedMSR::Prec8modes |
Definition at line 269 of file ReducedMSR.H.
PtrList<volScalarField> reducedMSR::PREC8REC |
Definition at line 316 of file ReducedMSR.H.
PtrList<volScalarField> reducedMSR::Prec8snapshots |
Definition at line 293 of file ReducedMSR.H.
msrProblem* reducedMSR::problem |
Pointer to the FOM problem.
Definition at line 335 of file ReducedMSR.H.
PtrList<volScalarField> reducedMSR::Psnapshots |
Definition at line 284 of file ReducedMSR.H.
bool reducedMSR::recall = false |
boolean variable to check if the user wants to reconstruct all the three physics of the problem
Definition at line 357 of file ReducedMSR.H.
scalar reducedMSR::rho |
Definition at line 212 of file ReducedMSR.H.
scalar reducedMSR::Sc |
Definition at line 214 of file ReducedMSR.H.
scalar reducedMSR::sp |
Definition at line 248 of file ReducedMSR.H.
PtrList<volScalarField> reducedMSR::SPmodes |
Definition at line 278 of file ReducedMSR.H.
PtrList<volScalarField> reducedMSR::SPREC |
Definition at line 326 of file ReducedMSR.H.
PtrList<volScalarField> reducedMSR::SPsnapshots |
Definition at line 302 of file ReducedMSR.H.
PtrList<volScalarField> reducedMSR::Tmodes |
Definition at line 270 of file ReducedMSR.H.
PtrList<volScalarField> reducedMSR::TREC |
Definition at line 317 of file ReducedMSR.H.
PtrList<volScalarField> reducedMSR::Tsnapshots |
Definition at line 294 of file ReducedMSR.H.
PtrList<volScalarField> reducedMSR::TXSmodes |
Definition at line 279 of file ReducedMSR.H.
PtrList<volScalarField> reducedMSR::TXSREC |
Definition at line 327 of file ReducedMSR.H.
PtrList<volScalarField> reducedMSR::TXSsnapshots |
Definition at line 303 of file ReducedMSR.H.
PtrList<volVectorField> reducedMSR::Umodes |
List of pointers to store the modes for each field.
Definition at line 259 of file ReducedMSR.H.
PtrList<volVectorField> reducedMSR::UREC |
Recontructed fields.
Definition at line 306 of file ReducedMSR.H.
PtrList<volVectorField> reducedMSR::Usnapshots |
List of pointers to store the snapshots for each field.
Definition at line 283 of file ReducedMSR.H.
PtrList<volScalarField> reducedMSR::vmodes |
Definition at line 274 of file ReducedMSR.H.
PtrList<volScalarField> reducedMSR::vREC |
Definition at line 322 of file ReducedMSR.H.
PtrList<volScalarField> reducedMSR::vsnapshots |
Definition at line 298 of file ReducedMSR.H.
Eigen::VectorXd reducedMSR::w |
Definition at line 205 of file ReducedMSR.H.
Eigen::VectorXd reducedMSR::w_old |
Definition at line 200 of file ReducedMSR.H.
Eigen::VectorXd reducedMSR::y |
Vector to store the solution during the Newton procedure.
Definition at line 204 of file ReducedMSR.H.
Eigen::VectorXd reducedMSR::y_old |
Vector to store the previous solution during the Newton procedure.
Definition at line 199 of file ReducedMSR.H.
Eigen::VectorXd reducedMSR::z |
Definition at line 206 of file ReducedMSR.H.
Eigen::VectorXd reducedMSR::z_old |
Definition at line 201 of file ReducedMSR.H.