TransFlow  0.1.0
A transient pipeline flow simulation library
Config Struct Reference

The Config struct stores all settings for the different parts of the pipeline simulation. More...

#include <config.hpp>

Public Attributes

std::string equationOfState = "BWRS"
 Equation of state, either "BWRS", "GERG04" or "IdealGas".
 
std::string heatTransfer = "SteadyState"
 Type of heat transfer, either "SteadyState", "Unsteady", "FixedUValue" or "FixedQValue".
 
std::string discretizer = "InternalEnergy"
 Type of energy equation, either "InternalEnergy" or "Enthalpy".
 
std::string toleranceType = "relative"
 The tolerance of Solver, either "relative" or "absolute".
 
arma::vec relaxationFactors = {1, 1, 2/3.0}
 The relaxation factors used by Solver.
 
arma::vec tolerances = {0.001, 0.001, 0.001}
 The convergence criteria used by Solver.
 
bool bruteForce = false
 If we want to force the number of iterations in Solver::solve.
 
arma::uword maxIterations = 200
 Max number of iterations to use in Solver::solve.
 
std::string outputPath = ""
 
arma::uword samplingInterval = 60
 How often to sample results [s].
 
bool appendResults = false
 If we should append to (true) or overwrite (false) existing output files.
 

Detailed Description

The Config struct stores all settings for the different parts of the pipeline simulation.

Member Data Documentation

◆ outputPath

std::string Config::outputPath = ""

Where to put results. Will not output any results if equal to empty string.


The documentation for this struct was generated from the following file: