18#include "CoupledBoundaryCondition.h"
19#include "FourierInterpolation.h"
21#include "Parameters.h"
22#include "RobinBoundaryCondition.h"
23#include "SolutionStates.h"
26#include "ActiveStress.h"
32#include "fils_struct.hpp"
34#include "Parameters.h"
36#include "ArtificialNeuralNetMaterial.h"
55 bool defined() {
return dof != 0; };
136 std::string robin_vtp_file =
"";
139 double resistance = 0.0;
219 consts::ElementType eType = consts::ElementType::NA;
258 std::string file_name;
259 std::string mesh_name;
289 consts::ConstitutiveModelType volType = consts::ConstitutiveModelType::stIso_NA;
295 consts::ConstitutiveModelType isoType = consts::ConstitutiveModelType::stIso_NA;
340 consts::FluidViscosityModelType viscType = consts::FluidViscosityModelType::viscType_NA;
365 consts::SolidViscosityModelType viscType = consts::SolidViscosityModelType::viscType_NA;
384 consts::EquationType phys = consts::EquationType::phys_NA;
391 std::map<consts::PhysicalPropertyType,double> prop;
486 consts::ElementType eType = consts::ElementType::NA;
557 std::vector<fsType> fs;
560 double qmTRI3 = 2.0/3.0;
566 bool boundary_integral =
false;
567 bool spatial =
false;
568 bool volume_integral =
false;
570 bool no_options_set() {
571 return !(boundary_integral | spatial | volume_integral);
574 void set_option(consts::OutputType type,
bool value)
576 if (type == consts::OutputType::boundary_integral) {
577 boundary_integral = value;
578 }
else if (type == consts::OutputType::spatial) {
580 }
else if (type == consts::OutputType::volume_integral) {
581 volume_integral = value;
596 consts::OutputNameType grp = consts::OutputNameType::outGrp_NA;
615 consts::SolverType
LS_type = consts::SolverType::lSolver_NA;
670 consts::ContactModelType cType = consts::ContactModelType::cntctM_NA;
692 consts::CplBCType bGrp = consts::CplBCType::cplBC_NA;
722 std::string oned_input_file;
739 std::string solver_library;
742 std::string configuration_file;
745 std::string coupling_type;
748 bool have_initial_flows =
false;
749 double initial_flows;
752 bool have_initial_pressures =
false;
753 double initial_pressures;
757 bool has_data =
false;
829 consts::CplBCType
schm = consts::CplBCType::cplBC_NA;
872 std::vector<cplFaceType>
fa;
882 std::string dname =
"";
912 consts::ElementType
eType = consts::ElementType::NA;
1057 std::vector<faceType>
fa;
1142 consts::EquationType
phys = consts::EquationType::phys_NA;
1305 consts::MeshGeneratorType
method = consts::MeshGeneratorType::RMSH_TETGEN;
1327 double maxRadRatio = 0.0;
1735 std::array<double,3> timeP;
1902 Array<double> Vinit;
1903 Array<double> Dinit;
1919 fsi_linear_solver::FSILS_lhsType
lhs;
1948 bool debug_active =
false;
The Array3 template class implements a simple interface to 3D arrays.
Definition Array3.h:25
Definition ArtificialNeuralNetMaterial.h:30
std::string stopTrigName
Stop_trigger file name.
Definition ComMod.h:1823
ibType ib
IB: Immersed boundary data structure.
Definition ComMod.h:1940
int stFileIncr
Increment in saving restart file.
Definition ComMod.h:1778
int nITs
Number of initialization time steps.
Definition ComMod.h:1763
bool ibFlag
Whether any Immersed Boundary (IB) treatment is required.
Definition ComMod.h:1694
Vector< int > colPtr
Column pointer (for sparse LHS matrix structure) Modified in: lhsa().
Definition ComMod.h:1834
bool zeroAve
Reset averaging variables from zero.
Definition ComMod.h:1673
std::string saveName
Saved output file name.
Definition ComMod.h:1817
std::vector< Array2D > grisMapList
RIS mapping array, with global (total) enumeration.
Definition ComMod.h:1867
int nMsh
Number of meshes.
Definition ComMod.h:1754
chnlType std
Input/output to the screen is handled by this structure.
Definition ComMod.h:1925
bool savedOnce
Whether any file being saved.
Definition ComMod.h:1658
risFaceType ris
risFace object
Definition ComMod.h:1943
bool stFileRepl
Whether to overwrite restart file or not.
Definition ComMod.h:1664
Array< double > varWallProps
CMM-variable wall properties: 1-thickness, 2-Elasticity modulus.
Definition ComMod.h:1906
Array< double > x
Position vector of mesh nodes (in ref config).
Definition ComMod.h:1876
bool cmmVarWall
Whether variable wall properties are used for CMM.
Definition ComMod.h:1679
bool have_initial_homogeneous_pressure
Whether a spatially uniform initial pressure is provided in solver.xml.
Definition ComMod.h:1722
std::array< int, 7 > stamp
Stamp ID to make sure simulation is compatible with stFiles.
Definition ComMod.h:1775
Array< double > Ad
Time derivative of displacement.
Definition ComMod.h:1887
int cTS
Current time step.
Definition ComMod.h:1733
int dof
Current equation degrees of freedom.
Definition ComMod.h:1741
bool urisFlag
Whether any URIS surface is considered.
Definition ComMod.h:1706
int gtnNo
Global total number of nodes, across all meshes (total) and all procs (global).
Definition ComMod.h:1745
std::string stFileName
Restart file name.
Definition ComMod.h:1820
int tnNo
Total number of nodes (number of nodes on current proc across all meshes).
Definition ComMod.h:1785
int nsd
Number of spatial dimensions.
Definition ComMod.h:1757
int nFacesLS
Number of faces in the LHS passed to FSILS.
Definition ComMod.h:1751
int nsymd
Number of stress values to be stored.
Definition ComMod.h:1791
bool ichckIEN
Check IEN array for initial mesh.
Definition ComMod.h:1670
std::string iniFilePath
Initialization file path.
Definition ComMod.h:1814
double initial_homogeneous_pressure
Spatially uniform initial pressure used to initialize the 3D pressure field.
Definition ComMod.h:1809
Vector< int > rowPtr
Row pointer (for sparse LHS matrix structure) Modified in: lhsa().
Definition ComMod.h:1844
std::string precompFileName
Precomputed state-variable file name.
Definition ComMod.h:1826
std::vector< Array2D > risMapList
RIS mapping array, with local (mesh) enumeration.
Definition ComMod.h:1864
int cEq
Current equation.
Definition ComMod.h:1730
Vector< int > cmmBdry
Boundary nodes set for CMM initialization and for zeroing-out non-wall nodal displacements.
Definition ComMod.h:1852
Array< double > Val
LHS matrix.
Definition ComMod.h:1873
std::vector< bool > urisFluidNodeMask
Fluid-related node mask for URIS SDF. Built once when consistent with tnNo; rebuilt automatically if ...
Definition ComMod.h:1716
bool bin2VTK
Postprocess step - convert bin to vtk.
Definition ComMod.h:1697
bool saveAve
Whether to averaged results.
Definition ComMod.h:1648
bool saveVTK
Whether to save to VTK files.
Definition ComMod.h:1655
int tDof
Total number of degrees of freedom per node.
Definition ComMod.h:1781
std::vector< urisType > uris
unfitted RIS object
Definition ComMod.h:1946
bool ris0DFlag
Whether any one-sided RIS surface with 0D coupling is considered.
Definition ComMod.h:1703
bool risFlag
Whether any RIS surface is considered.
Definition ComMod.h:1700
std::string precompFieldName
Precomputed state-variable field name.
Definition ComMod.h:1829
bool cmmInit
Whether CMM equation is initialized.
Definition ComMod.h:1676
Array< double > Rd
Residual of the displacement equation.
Definition ComMod.h:1890
cplBCType cplBC
Coupled BCs structures used for multidomain simulations.
Definition ComMod.h:1913
double time
Time.
Definition ComMod.h:1806
bool pstEq
Whether PRESTRESS is being solved.
Definition ComMod.h:1685
bool resetSim
Restart simulation after remeshing.
Definition ComMod.h:1667
double dt
Time step size.
Definition ComMod.h:1800
bool urisActFlag
Whether the URIS surface is active.
Definition ComMod.h:1709
Array< double > R
Residual vector.
Definition ComMod.h:1870
rmshType rmsh
Remesher type.
Definition ComMod.h:1934
int saveIncr
Increment in saving solutions.
Definition ComMod.h:1772
bool usePrecomp
Whether to use precomputed state-variable solutions.
Definition ComMod.h:1719
ioType io
To group above channels.
Definition ComMod.h:1928
cntctModelType cntctM
Contact model type.
Definition ComMod.h:1937
int RisnbrIter
Nbr of iterations.
Definition ComMod.h:1794
bool alwaysSaveDomainID
Whether to save the domain ID to every VTK file rather than to the first one only.
Definition ComMod.h:1652
cmType cm
The general communicator.
Definition ComMod.h:1931
int nUris
Number of URIS surfaces (uninitialized, to be set later).
Definition ComMod.h:1712
int startTS
Starting time step.
Definition ComMod.h:1738
Vector< int > idMap
Array that maps global node id to rowN in the matrix Modified in: lhsa().
Definition ComMod.h:1848
bool stFileFlag
Whether start from beginning or from simulations.
Definition ComMod.h:1661
bool shlEq
Whether shell equation is being solved.
Definition ComMod.h:1682
std::vector< eqType > eq
All data related to equations are stored in this container.
Definition ComMod.h:1916
bool iCntct
Whether to detect and apply any contact model.
Definition ComMod.h:1691
double precompDt
Time step size of the precomputed state-variables.
Definition ComMod.h:1803
bool dFlag
Whether there is a requirement to update mesh and Dn-Do variables.
Definition ComMod.h:1642
int cDmn
Current domain.
Definition ComMod.h:1727
int nTS
Number of time steps.
Definition ComMod.h:1760
int nEq
Number of equations.
Definition ComMod.h:1748
Vector< int > iblank
IB: iblank used for immersed boundaries (1 => solid, 0 => fluid).
Definition ComMod.h:1855
Array< double > Kd
LHS matrix for displacement equation.
Definition ComMod.h:1893
std::vector< mshType > msh
All the meshes are stored in this variable.
Definition ComMod.h:1922
int recLn
stFiles record length
Definition ComMod.h:1766
int rsTS
Restart Time Step.
Definition ComMod.h:1788
bool mvMsh
Whether mesh is moving.
Definition ComMod.h:1645
Vector< double > Pinit
Temporary storage for initializing state variables.
Definition ComMod.h:1901
Vector< int > ltg
Local to global pointer tnNo --> gtnNo.
Definition ComMod.h:1840
fsi_linear_solver::FSILS_lhsType lhs
FSILS data structure to produce LHS sparse matrix.
Definition ComMod.h:1919
Array< double > Bf
Body force.
Definition ComMod.h:1879
Vector< int > dmnId
Domain ID.
Definition ComMod.h:1837
Array< double > pS0
Variables for prestress calculations.
Definition ComMod.h:1896
int saveATS
Start saving after this number of time step.
Definition ComMod.h:1769
bool sstEq
Whether velocity-pressure based structural dynamics solver is used.
Definition ComMod.h:1688
Object-oriented Coupled boundary condition.
Definition CoupledBoundaryCondition.h:199
Fiber directions associated with one mesh.
Definition Fibers.h:19
Fourier interpolation of time dependent data.
Definition FourierInterpolation.h:113
The LinearAlgebra class provides an abstract interface to linear algebra frameworks: FSILS,...
Definition LinearAlgebra.h:13
Moving boundary data structure (used for general BC).
Definition ComMod.h:52
Definition RobinBoundaryCondition.h:37
Keep track of time.
Definition Timer.h:11
The Vector template class is used for storing int and double data.
Definition Vector.h:26
Mesh adjacency (neighboring element for each element).
Definition ComMod.h:416
Boundary condition data type.
Definition ComMod.h:96
Class storing data for B-Splines.
Definition ComMod.h:180
Cardiac electrophysiology model type.
Definition CepMod.h:144
Channel type, used in I/O.
Definition ChnlMod.h:19
The cmType class stores data and defines methods used for mpi communication.
Definition CmMod.h:57
Contact model type.
Definition ComMod.h:667
For coupled 0D-3D problems.
Definition ComMod.h:791
consts::CplBCType schm
Implicit/Explicit/Semi-implicit schemes.
Definition ComMod.h:829
bool initRCR
Whether to initialize RCR from flow data.
Definition ComMod.h:811
bool useSvOneD
Whether to use svOneD (svOneDSolver).
Definition ComMod.h:808
int nX
Number of unknowns in the 0D domain.
Definition ComMod.h:823
int nFa
Number of coupled faces.
Definition ComMod.h:814
svZeroDSolverInterfaceData svzerod_solver_interface
Data structure used for coupling with svZeroD code.
Definition ComMod.h:853
Vector< double > xo
Old time step unknowns in the 0D domain.
Definition ComMod.h:866
std::vector< std::pair< int, int > > svZeroD_coupled_bc_idxs
(iEq, iBc) for each svZeroD coupled BC in deterministic traversal order.
Definition ComMod.h:820
int nSvZeroD_coupled_bc
Number of Time_dependence Coupled BCs for svZeroD (set in init_svZeroD).
Definition ComMod.h:817
bool useGenBC
Whether to use genBC.
Definition ComMod.h:802
double finite_difference_relative_perturbation
Flow-rate perturbation used to finite-difference the coupled-BC tangent dP/dQ in set_bc::calc_der_cpl...
Definition ComMod.h:843
std::string binPath
Path to the 0D code binary file.
Definition ComMod.h:846
std::string saveName
The name of history file containing "X".
Definition ComMod.h:859
std::string commuName
File name for communication between 0D and 3D.
Definition ComMod.h:849
unsigned int equationIndex
Index of the equation that this condition is associated with.
Definition ComMod.h:796
bool coupled
Is multi-domain active.
Definition ComMod.h:799
std::vector< cplFaceType > fa
Data structure used for communicating with 0D code.
Definition ComMod.h:872
double finite_difference_absolute_perturbation
Absolute floor on the flow-rate perturbation used to finite-difference the coupled-BC tangent dP/dQ i...
Definition ComMod.h:836
Vector< double > xp
Output variables to be printed.
Definition ComMod.h:869
bool useSvZeroD
Whether to use svZeroD.
Definition ComMod.h:805
Vector< double > xn
New time step unknowns in the 0D domain.
Definition ComMod.h:863
int nXp
Number of output variables addition to nX.
Definition ComMod.h:826
svOneDSolverInterfaceData svOneD_solver_interface
Data structure used for coupling with svOneD code.
Definition ComMod.h:856
This type will be used to write data in the VTK files.
Definition ComMod.h:1266
std::string active_stress_model_name
Active stress model name.
Definition ComMod.h:398
std::shared_ptr< ActiveStress > active_stress
Active stress model.
Definition ComMod.h:401
LinearAlgebra * linear_algebra
Interface to a numerical linear algebra library.
Definition ComMod.h:1230
double roInf
Definition ComMod.h:1169
int maxItr
Maximum iteration for this eq.
Definition ComMod.h:1112
int s
Pointer to start of unknown Yo(:,s:e).
Definition ComMod.h:1106
int nDmnIB
IB: Number of immersed domains.
Definition ComMod.h:1130
bool coupled
Should be satisfied in a coupled/uncoupled fashion.
Definition ComMod.h:1087
bool line_search_verbose
If enabled, report line search progress to stdout.
Definition ComMod.h:1209
bool ok
Satisfied/not satisfied.
Definition ComMod.h:1091
int nBcIB
Number of BCs on immersed surfaces.
Definition ComMod.h:1136
std::string sym
Equation symbol.
Definition ComMod.h:1214
bool expl_geom_cpl
Explicit geometry coupling.
Definition ComMod.h:1257
bool assmTLS
Use C++ Trilinos framework for assembly and for linear solvers.
Definition ComMod.h:1097
lsType ls
type of linear solver
Definition ComMod.h:1218
double line_search_minimum_decrease
Minimum decrease of the residual norm for line search.
Definition ComMod.h:1188
std::vector< outputType > outIB
IB: Outputs.
Definition ComMod.h:1251
double tol
Accepted relative tolerance.
Definition ComMod.h:1172
bool useTLS
Use C++ Trilinos framework for the linear solvers.
Definition ComMod.h:1094
int itr
Number of performed iterations.
Definition ComMod.h:1109
double gam
Definition ComMod.h:1160
std::vector< outputType > outURIS
URIS: Outputs.
Definition ComMod.h:1254
int nBc
Number of BCs.
Definition ComMod.h:1133
int e
Pointer to end of unknown Yo(:,s:e).
Definition ComMod.h:1103
std::vector< dmnType > dmn
domains that this equation must be solved
Definition ComMod.h:1242
consts::PreconditionerType linear_algebra_preconditioner
The type of preconditioner used by the interface to a numerical linear algebra library.
Definition ComMod.h:1227
int nOutIB
IB: Number of possible outputs.
Definition ComMod.h:1121
double am
Definition ComMod.h:1154
double iNorm
Initial norm of residual.
Definition ComMod.h:1163
consts::LinearAlgebraType linear_algebra_assembly_type
The type of assembly interface to a numerical linear algebra library.
Definition ComMod.h:1224
consts::LinearAlgebraType linear_algebra_type
The type of interface to a numerical linear algebra library.
Definition ComMod.h:1221
int nOutURIS
URIS: Number of possible outputs.
Definition ComMod.h:1124
std::vector< bfType > bf
Body force associated with this equation.
Definition ComMod.h:1260
double pNorm
First iteration norm.
Definition ComMod.h:1166
double af
Definition ComMod.h:1147
int nBf
Number of BFs.
Definition ComMod.h:1139
int nDmn
Number of domains.
Definition ComMod.h:1127
int nOutput
Number of possible outputs.
Definition ComMod.h:1118
std::vector< dmnType > dmnIB
IB: immersed domains that this equation must be solved.
Definition ComMod.h:1245
double line_search_minimum_step_length
Line search minimum step length.
Definition ComMod.h:1204
std::vector< bcType > bc
BCs associated with this equation;.
Definition ComMod.h:1236
std::vector< bcType > bcIB
IB: BCs associated with this equation on immersed surfaces.
Definition ComMod.h:1239
int dof
Degrees of freedom.
Definition ComMod.h:1100
double line_search_step_reduction_factor
Line search step reduction factor.
Definition ComMod.h:1196
fsi_linear_solver::FSILS_lsType FSILS
FSILS type of linear solver.
Definition ComMod.h:1233
consts::EquationType phys
Type of equation fluid/heatF/heatS/lElas/FSI.
Definition ComMod.h:1142
std::vector< outputType > output
Outputs.
Definition ComMod.h:1248
double beta
Definition ComMod.h:1157
int minItr
Minimum iteration for this eq.
Definition ComMod.h:1115
bool line_search_enabled
Toggle line search for this equation.
Definition ComMod.h:1180
void destroy()
Free memory and reset some data members.
Definition ComMod.cpp:121
Fluid viscosity model type.
Definition ComMod.h:336
void destroy()
SUBROUTINE DESTROYFS(fs).
Definition ComMod.cpp:158
Vector< int > nG
Num traces (Gauss points) local to each process.
Definition ComMod.h:1354
Vector< int > n
Num traces (nodes) local to each process.
Definition ComMod.h:1348
Vector< int > gE
Pointer to global trace (Gauss point) stacked contiguously.
Definition ComMod.h:1357
Vector< int > gN
Pointer to global trace (node num) stacked contiguously.
Definition ComMod.h:1351
Immersed Boundary (IB) data type.
Definition ComMod.h:1364
Array< double > x
IB position coordinates.
Definition ComMod.h:1408
Array< double > Aun
Time derivative of displacement (new).
Definition ComMod.h:1417
int cpld
IB coupling.
Definition ComMod.h:1376
Array< double > Ku
LHS tangent matrix for displacement.
Definition ComMod.h:1447
int tnNo
Total number of IB nodes.
Definition ComMod.h:1390
Array< double > Un
Displacement (projected on background mesh, new, n+af).
Definition ComMod.h:1435
int cEq
Current equation.
Definition ComMod.h:1387
Array< double > R
Residual (FSI force).
Definition ComMod.h:1438
int intrp
IB interpolation method.
Definition ComMod.h:1380
Array< double > Uo
Displacement (projected on background mesh, old).
Definition ComMod.h:1432
Array< double > Yb
Velocity (new).
Definition ComMod.h:1411
Array< double > Ubn
Displacement (new).
Definition ComMod.h:1426
int cDmn
Current IB domain ID.
Definition ComMod.h:1384
double callD[4]
IB call duration (1: total time; 2: update; 3,4: communication).
Definition ComMod.h:1396
ibCommType cm
IB communicator.
Definition ComMod.h:1453
Vector< int > rowPtr
Row pointer (for sparse LHS matrix storage).
Definition ComMod.h:1402
Array< double > Rub
Residual (displacement, IB mesh).
Definition ComMod.h:1444
bool savedOnce
Whether any file being saved.
Definition ComMod.h:1368
Vector< int > dmnID
IB Domain ID.
Definition ComMod.h:1399
Array< double > Auo
Time derivative of displacement (old).
Definition ComMod.h:1414
Array< double > Ubk
Displacement (n+af).
Definition ComMod.h:1429
int nMsh
Number of IB meshes.
Definition ComMod.h:1393
int mthd
IB method.
Definition ComMod.h:1372
std::vector< mshType > msh
DERIVED class VARIABLES IB meshes;.
Definition ComMod.h:1450
Array< double > Ubo
Displacement (old).
Definition ComMod.h:1423
Vector< int > colPtr
Column pointer (for sparse LHS matrix storage).
Definition ComMod.h:1405
Array< double > Ru
Residual (displacement, background mesh).
Definition ComMod.h:1441
Array< double > Auk
Time derivative of displacement (n+am).
Definition ComMod.h:1420
Only to group four channels, in case I rather have them as one variable.
Definition ChnlMod.h:50
Linear system of equations solver type.
Definition ComMod.h:611
double absTol
Absolute tolerance (IN).
Definition ComMod.h:642
int cN
Number of |x| norms (OUT).
Definition ComMod.h:633
int cD
Number of <x.y> dot products (OUT).
Definition ComMod.h:636
double fNorm
Final norm of residual (OUT).
Definition ComMod.h:651
double callD
Calling duration (OUT).
Definition ComMod.h:657
int reserve
Only for data alignment (-).
Definition ComMod.h:639
bool suc
Successful solving (OUT).
Definition ComMod.h:618
int mItr
Maximum iterations (IN).
Definition ComMod.h:621
consts::SolverType LS_type
LS solver (IN).
Definition ComMod.h:615
int itr
Number of iteration (OUT).
Definition ComMod.h:627
double relTol
Relative tolerance (IN).
Definition ComMod.h:645
double dB
Res. rduction in last itr. (OUT).
Definition ComMod.h:654
int sD
Space dimension (IN).
Definition ComMod.h:624
int cM
Number of Ax multiple (OUT).
Definition ComMod.h:630
double iNorm
Initial norm of residual (OUT).
Definition ComMod.h:648
This is the container for a mesh or NURBS patch, those specific to NURBS are noted.
Definition ComMod.h:879
int nNo
Number of nodes (control points) for 2D elements?
Definition ComMod.h:940
Vector< double > w
Gauss weights.
Definition ComMod.h:1006
std::vector< std::vector< int > > ordering
@breif ordering: node ordering for boundaries
Definition ComMod.h:964
Array< double > N
Parent shape function.
Definition ComMod.h:1018
traceType trc
IB: tracers.
Definition ComMod.h:1060
Array3< double > Ys
Solution field (displacement, velocity, pressure, etc.) for a known, potentially time-varying,...
Definition ComMod.h:1039
Vector< int > eDist
Element distribution between processors.
Definition ComMod.h:967
Vector< int > iGC
IB: Whether a cell is a ghost cell or not.
Definition ComMod.h:1000
adjType nAdj
Mesh nodal adjacency.
Definition ComMod.h:1045
Array< double > xib
Bounds on parameteric coordinates.
Definition ComMod.h:1012
adjType eAdj
Mesh element adjacency.
Definition ComMod.h:1048
int nG
Number of Gauss points for integration.
Definition ComMod.h:937
int nFa
Number of faces.
Definition ComMod.h:931
Array< double > x
Position coordinates (not always, however, as they get overwritten by read_vtu_pdata()).
Definition ComMod.h:1015
std::vector< fsType > fs
Function spaces (basis).
Definition ComMod.h:1051
Array3< double > Nxx
Second derivatives of shape functions - used for shells & IGA davep double Nxx(:,:,...
Definition ComMod.h:1035
int gnNo
Global number of nodes (control points) on a single mesh.
Definition ComMod.h:922
double dx
IB: Mesh size parameter.
Definition ComMod.h:952
bool lShpF
Whether the shape function is linear.
Definition ComMod.h:903
Vector< int > lN
Global to local maping tnNo --> nNo.
Definition ComMod.h:991
Vector< int > otnIEN
gIEN mapper from old to new
Definition ComMod.h:985
Vector< int > eRIS
RIS: flags of whether elemets are adjacent to RIS projections.
Definition ComMod.h:1064
Array< int > eIEN
Shells: extended IEN array with neighboring nodes.
Definition ComMod.h:994
Fibers fibers
Fiber orientations used for electrophysiology and solid mechanics.
Definition ComMod.h:1027
Vector< int > gN
Global nodes maping nNo --> tnNo.
Definition ComMod.h:973
bool lFib
Whether the mesh is fibers (Purkinje).
Definition ComMod.h:909
double v
The volume of this mesh.
Definition ComMod.h:961
int eNoN
Number of nodes (control points) in a single element.
Definition ComMod.h:916
double scF
Mesh scale factor.
Definition ComMod.h:949
Vector< int > eId
Element domain ID number.
Definition ComMod.h:970
int gnEl
Global number of elements (knot spans).
Definition ComMod.h:919
double res
RIS resistance value.
Definition ComMod.h:955
Vector< int > partRIS
RIS: processor ids to change element partitions to.
Definition ComMod.h:1067
int nSl
Number of elements sample points to be outputs (NURBS).
Definition ComMod.h:943
Array< double > xi
Gauss integration points in parametric space.
Definition ComMod.h:1009
int nFs
Number of function spaces.
Definition ComMod.h:934
Array< int > sbc
Shells: boundary condition variable.
Definition ComMod.h:997
bool lShl
Whether the mesh is shell.
Definition ComMod.h:906
Array< double > Nb
Shape function bounds.
Definition ComMod.h:1021
Array< double > nV
Normal vector to each nodal point (for Shells).
Definition ComMod.h:1024
Vector< double > nW
Control points weights (NURBS).
Definition ComMod.h:1003
Array3< double > Nx
Parent shape functions gradient double Nx(:,:,:).
Definition ComMod.h:1031
std::vector< faceType > fa
Faces are stored in this variable.
Definition ComMod.h:1057
Vector< int > gpN
GLobal projected nodes mapping projected -> unprojected mapping.
Definition ComMod.h:976
Array< int > gIEN
Global connectivity array mappig eNoN,nEl --> gnNo.
Definition ComMod.h:979
int vtkType
The element type recognized by VTK format.
Definition ComMod.h:946
int nEl
Number of elements (knot spans).
Definition ComMod.h:928
consts::ElementType eType
Element type.
Definition ComMod.h:912
int nEf
Number of element face. Used for reading Gambit mesh files.
Definition ComMod.h:925
std::string name
Mesh Name.
Definition ComMod.h:1042
std::vector< bsType > bs
BSpline in different directions (NURBS).
Definition ComMod.h:1054
double tol
RIS projection tolerance.
Definition ComMod.h:958
Array< int > IEN
The connectivity array mapping eNoN,nEl --> nNo.
Definition ComMod.h:982
double qmTET4
TET4 quadrature modifier.
Definition ComMod.h:1070
Array< int > INN
Local knot pointer (NURBS).
Definition ComMod.h:988
Declared type for outputed variables.
Definition ComMod.h:589
Data type for Resistive Immersed Surface.
Definition ComMod.h:1459
Array3< int > lst
List of meshes, and faces connected. The first face is the.
Definition ComMod.h:1470
std::vector< bool > status
Status RIS interface.
Definition ComMod.h:1485
Vector< double > Res
Resistance value.
Definition ComMod.h:1473
Vector< int > nbrIter
Count time steps where no check is needed.
Definition ComMod.h:1466
Array< double > meanP
Mean distal and proximal pressure (1: distal, 2: proximal).
Definition ComMod.h:1479
int nbrRIS
Number of RIS surface.
Definition ComMod.h:1463
Vector< double > meanFl
Mean flux on the RIS surface.
Definition ComMod.h:1482
std::vector< bool > clsFlg
Flag closed surface active, the valve is considerd open initially.
Definition ComMod.h:1476
Vector< double > iNorm
Initial norm of an equation.
Definition ComMod.h:1333
int rTS
Time step from which remeshing is done.
Definition ComMod.h:1311
int freq
Time step frequency for forced remeshing.
Definition ComMod.h:1320
int cpVar
Time step freq for saving data.
Definition ComMod.h:1314
Array< double > A0
Copy of solution variables where remeshing starts.
Definition ComMod.h:1336
int cntr
Counter to track number of remesh done.
Definition ComMod.h:1308
std::vector< bool > flag
Flag is set if remeshing is required for each mesh.
Definition ComMod.h:1341
double time
Time where remeshing starts.
Definition ComMod.h:1323
consts::MeshGeneratorType method
Method for remeshing: 1-TetGen, 2-MeshSim.
Definition ComMod.h:1305
double minDihedAng
Mesh quality parameters.
Definition ComMod.h:1326
int fTS
Time step at which forced remeshing is done.
Definition ComMod.h:1317
Vector< double > maxEdgeSize
Edge size of mesh.
Definition ComMod.h:1330
bool isReqd
Whether remesh is required for problem or not.
Definition ComMod.h:1302
Fluid viscosity model type.
Definition ComMod.h:361
Structural domain type.
Definition ComMod.h:286
Stores information used to interface with svOneDSolver.
Definition ComMod.h:768
bool has_data
True if the svOneDSolver interface settings were read from XML.
Definition ComMod.h:780
void set_data(const svOneDSolverInterfaceParameters ¶ms)
Read svOneDSolver interface settings from parsed parameters.
Definition ComMod.cpp:220
std::string solver_library
Path to the svOneDSolver interface shared library.
Definition ComMod.h:774
Parameters for coupling to the svOneDSolver (1D blood-flow solver).
Definition Parameters.h:728
Parameters for coupling to the svZeroDSolver (0D lumped-parameter solver).
Definition Parameters.h:679
Tracer type used for immersed boundaries. Identifies traces of nodes and integration points on backgr...
Definition ComMod.h:435
Unfitted Resistive Immersed Surface (URIS) data type.
Definition ComMod.h:1508
Array< double > Yd
Valve displacement.
Definition ComMod.h:1533
Array< double > valve_velocity_fluid
Valve velocity interpolated on background fluid mesh nodes.
Definition ComMod.h:1583
int nFa
Number of immersed boundary meshes.
Definition ComMod.h:1521
double scF
Mesh scale factor.
Definition ComMod.h:1586
bool sdf_computed
Flag indicating whether the signed distance function is computed.
Definition ComMod.h:1577
bool scaffold_udf_computed
Flag indicating whether the scaffold mesh UDF is computed.
Definition ComMod.h:1624
Vector< int > localNode
Per-node ownership flag set by uris_find_tetra.
Definition ComMod.h:1609
mshType scaffold_msh
Scaffold mesh data.
Definition ComMod.h:1618
double meanPD
Mean pressure downstream.
Definition ComMod.h:1592
Array< double > x
Valve surface position coordinates.
Definition ComMod.h:1524
double sdf_deps_close
Half-thickness used when the valve is closed.
Definition ComMod.h:1545
std::vector< mshType > msh
Immersed boundary meshes.
Definition ComMod.h:1612
int cnt
Iteration count.
Definition ComMod.h:1574
bool include_uris_velocity
Whether to include the valve velocity in the RIS implementation.
Definition ComMod.h:1559
double sdf_deps
Half-valve thickness when the valve is open.
Definition ComMod.h:1539
Array3< double > DxClose
Closing positions of the valve surfaces.
Definition ComMod.h:1565
Array< double > valve_velocity
Valve velocity on the valve surface nodes.
Definition ComMod.h:1530
int tnNo
Total number of immersed boundary nodes.
Definition ComMod.h:1518
bool clsFlg
Close flag.
Definition ComMod.h:1571
bool scaffold_flag
Whether a scaffold mesh is enabled for this URIS instance.
Definition ComMod.h:1615
Array< int > elemId
Background fluid mesh element containing each immersed surface node.
Definition ComMod.h:1602
bool invert_normal
Whether to invert the valve surface normal vector.
Definition ComMod.h:1556
Array< double > x_prev
Valve position coordinates at the previous time step.
Definition ComMod.h:1527
Vector< double > scaffold_udf
Unsigned distance function (UDF) for the scaffold mesh.
Definition ComMod.h:1621
double sdf_default
Default signed distance value away from the valve.
Definition ComMod.h:1536
bool savedOnce
Whether any file has been saved.
Definition ComMod.h:1515
Array3< double > DxOpen
Opening positions of the valve surfaces.
Definition ComMod.h:1562
std::string name
Name of the URIS instance.
Definition ComMod.h:1512
Vector< double > nrm
Normal vector pointing in the positive flow direction.
Definition ComMod.h:1568
double relax_factor
Relaxation factor to compute weighted averages of pressure values.
Definition ComMod.h:1595
Vector< double > sdf
Signed distance function indexed by background fluid mesh node.
Definition ComMod.h:1580
double resistance
Resistance value of the valve.
Definition ComMod.h:1548
double meanPU
Mean pressure upstream.
Definition ComMod.h:1589
TODO: for now, better to organize these within a class.
Definition ComMod.h:1858
Store options for output types.
Definition ComMod.h:565