svMultiPhysics
Loading...
Searching...
No Matches
Public Attributes | List of all members
cplBCType Class Reference

For coupled 0D-3D problems. More...

#include <ComMod.h>

Public Attributes

unsigned int equationIndex = 0
 Index of the equation that this condition is associated with.
 
bool coupled = false
 Is multi-domain active.
 
bool useGenBC = false
 Whether to use genBC.
 
bool useSvZeroD = false
 Whether to use svZeroD.
 
bool useSvOneD = false
 Whether to use svOneD (svOneDSolver)
 
bool initRCR = false
 Whether to initialize RCR from flow data.
 
int nFa = 0
 Number of coupled faces.
 
int nSvZeroD_coupled_bc = 0
 Number of Time_dependence Coupled BCs for svZeroD (set in init_svZeroD).
 
std::vector< std::pair< int, int > > svZeroD_coupled_bc_idxs
 (iEq, iBc) for each svZeroD coupled BC in deterministic traversal order.
 
int nX = 0
 Number of unknowns in the 0D domain.
 
int nXp = 0
 Number of output variables addition to nX.
 
consts::CplBCType schm = consts::CplBCType::cplBC_NA
 Implicit/Explicit/Semi-implicit schemes.
 
double finite_difference_absolute_perturbation = 1.0e-7
 Absolute floor on the flow-rate perturbation used to finite-difference the coupled-BC tangent dP/dQ in set_bc::calc_der_cpl_bc. This is a dimensional quantity, so it must be set consistently with the unit system of the simulation.
 
double finite_difference_relative_perturbation = 1.0e-5
 Flow-rate perturbation used to finite-difference the coupled-BC tangent dP/dQ in set_bc::calc_der_cpl_bc, relative to the RMS coupled flow rate. The perturbation actually applied is max(rms(Q)*finite_difference_relative_perturbation, finite_difference_absolute_perturbation).
 
std::string binPath
 Path to the 0D code binary file.
 
std::string commuName
 File name for communication between 0D and 3D.
 
svZeroDSolverInterfaceData svzerod_solver_interface
 Data structure used for coupling with svZeroD code.
 
svOneDSolverInterfaceData svOneD_solver_interface
 Data structure used for coupling with svOneD code.
 
std::string saveName
 The name of history file containing "X".
 
Vector< double > xn
 New time step unknowns in the 0D domain.
 
Vector< double > xo
 Old time step unknowns in the 0D domain.
 
Vector< double > xp
 Output variables to be printed.
 
std::vector< cplFaceType > fa
 Data structure used for communicating with 0D code.
 

Detailed Description

For coupled 0D-3D problems.

Member Data Documentation

◆ binPath

std::string cplBCType::binPath

Path to the 0D code binary file.

◆ commuName

std::string cplBCType::commuName

File name for communication between 0D and 3D.

◆ coupled

bool cplBCType::coupled = false

Is multi-domain active.

◆ equationIndex

unsigned int cplBCType::equationIndex = 0

Index of the equation that this condition is associated with.

◆ fa

std::vector<cplFaceType> cplBCType::fa

Data structure used for communicating with 0D code.

◆ finite_difference_absolute_perturbation

double cplBCType::finite_difference_absolute_perturbation = 1.0e-7

Absolute floor on the flow-rate perturbation used to finite-difference the coupled-BC tangent dP/dQ in set_bc::calc_der_cpl_bc. This is a dimensional quantity, so it must be set consistently with the unit system of the simulation.

◆ finite_difference_relative_perturbation

double cplBCType::finite_difference_relative_perturbation = 1.0e-5

Flow-rate perturbation used to finite-difference the coupled-BC tangent dP/dQ in set_bc::calc_der_cpl_bc, relative to the RMS coupled flow rate. The perturbation actually applied is max(rms(Q)*finite_difference_relative_perturbation, finite_difference_absolute_perturbation).

◆ initRCR

bool cplBCType::initRCR = false

Whether to initialize RCR from flow data.

◆ nFa

int cplBCType::nFa = 0

Number of coupled faces.

◆ nSvZeroD_coupled_bc

int cplBCType::nSvZeroD_coupled_bc = 0

Number of Time_dependence Coupled BCs for svZeroD (set in init_svZeroD).

◆ nX

int cplBCType::nX = 0

Number of unknowns in the 0D domain.

◆ nXp

int cplBCType::nXp = 0

Number of output variables addition to nX.

◆ saveName

std::string cplBCType::saveName

The name of history file containing "X".

◆ schm

consts::CplBCType cplBCType::schm = consts::CplBCType::cplBC_NA

Implicit/Explicit/Semi-implicit schemes.

◆ svOneD_solver_interface

svOneDSolverInterfaceData cplBCType::svOneD_solver_interface

Data structure used for coupling with svOneD code.

◆ svZeroD_coupled_bc_idxs

std::vector<std::pair<int, int> > cplBCType::svZeroD_coupled_bc_idxs

(iEq, iBc) for each svZeroD coupled BC in deterministic traversal order.

◆ svzerod_solver_interface

svZeroDSolverInterfaceData cplBCType::svzerod_solver_interface

Data structure used for coupling with svZeroD code.

◆ useGenBC

bool cplBCType::useGenBC = false

Whether to use genBC.

◆ useSvOneD

bool cplBCType::useSvOneD = false

Whether to use svOneD (svOneDSolver)

◆ useSvZeroD

bool cplBCType::useSvZeroD = false

Whether to use svZeroD.

◆ xn

Vector<double> cplBCType::xn

New time step unknowns in the 0D domain.

◆ xo

Vector<double> cplBCType::xo

Old time step unknowns in the 0D domain.

◆ xp

Vector<double> cplBCType::xp

Output variables to be printed.


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