Lethe Open-Source Library version 1.2.0
Developer Guide
Loading...
Searching...
No Matches
parameters.cc File Reference
#include <core/parameters.h>
#include <core/shape.h>
#include <core/shape_parsing.h>
#include <core/utilities.h>
#include <deal.II/base/exceptions.h>
#include <algorithm>
Include dependency graph for parameters.cc:

Go to the source code of this file.

Namespaces

namespace  Parameters

Functions

 DeclException2 (PhaseChangeIntervalError, double, double,<< "Liquidus temperature : "<< arg1<< " is not strictly superior to Solidus temperature: "<< arg2<< " The liquidus temperature specific is below or equal to the solidus temperature."<< " The phase change specific heat model requires that T_liquidus>T_solidus.")
 DeclException1 (NumberOfFluidsError, int,<< "Number of fluids: "<< arg1<< " is not 1 (single phase simulation) or 2 (CLS/Cahn-Hilliard simulations). This is currently not supported.")
 DeclException1 (NumberOfSolidsError, int,<< "Number of solids: "<< arg1<< " is larger than 1. This is currently not supported.")
 DeclException1 (NumberOfUnresolvedDispersedPhasesError, int,<< "Number of unresolved dispersed phases: "<< arg1<< " is larger than 1. This is currently not supported.")
 DeclException1 (NumberOfMaterialInteractionsError, int,<< "Number of material interactions: "<< arg1<< " is larger than 3. This is currently not supported.")
 DeclException2 (OrderOfFluidIDsError, int, int,<< "The first fluid's id is "<< arg1<< " and the id of the second fluid is "<< arg2<< ". The first fluid's id should be lower than the second fluid's.")
 DeclExceptionMsg (MaterialInteractionTypeError, "Invalid material interaction type. The choices are <fluid_fluid|fluid_solid|fluid_dispersed_phase>.")
 DeclException1 (TwoDimensionalLaserError, unsigned int,<< "Laser beam orientation in : "<< arg1<< "-dimensional simulations cannot be defined in the z direction")
 DeclException3 (MultipleAdaptationSizeError, std::string, unsigned int, unsigned int,<< "Error in 'mesh adaptation' : number of '"<< arg1<< "' ("<< arg2<< ") does not correspond to the number of 'variables' ("<< arg3<< ")")
 DeclException3 (ParameterStrictlyGreaterThanError, std::string, double, double,<< "The parameter '"<< arg1<< "' is set to: "<< arg2<< ". However, it should be strictly greater than "<< arg3<< ".")
 DeclException4 (ListSizeIncoherentWithDeclaredNumber, std::string, unsigned int, std::string, unsigned int,<< "'"<< arg1<< "' was set to "<< arg2<< " and the list '"<< arg3<< "' has a size of "<< arg4<< ". However, the list size should correspond to the number declared.")
 DeclException4 (ListsSizeMismatch, std::string, std::string, unsigned int, unsigned int,<< "There is a size mismatch between 2 lists. The list '"<< arg1<< "' and the list '"<< arg2<< "' have respectively sizes of "<< arg3<< " and "<< arg4<< ". However, they should be of the same size.")
const DeprecatedEnumNames< Verbosity > & Parameters::deprecated_verbosity_names ()
const std::vector< Verbosity > & Parameters::quiet_or_verbose ()
const DeprecatedEnumNames< FluidIndicator > & Parameters::deprecated_fluid_indicator_names ()
const std::vector< FluidIndicator > & Parameters::single_fluid_indicators ()
SizeOfSubsections Parameters::get_size_of_subsections (const std::string &file_name, const bool require_subsection_size=true)

Function Documentation

◆ DeclException1() [1/5]

DeclException1 ( NumberOfFluidsError ,
int ,
<< "Number of fluids: "<< arg1<< " is not 1 (single phase simulation) or 2 (CLS/Cahn-Hilliard simulations). This is currently not supported."  )

◆ DeclException1() [2/5]

DeclException1 ( NumberOfMaterialInteractionsError ,
int ,
<< "Number of material interactions: "<< arg1<< " is larger than 3. This is currently not supported."  )

◆ DeclException1() [3/5]

DeclException1 ( NumberOfSolidsError ,
int ,
<< "Number of solids: "<< arg1<< " is larger than 1. This is currently not supported."  )

◆ DeclException1() [4/5]

DeclException1 ( NumberOfUnresolvedDispersedPhasesError ,
int ,
<< "Number of unresolved dispersed phases: "<< arg1<< " is larger than 1. This is currently not supported."  )

◆ DeclException1() [5/5]

DeclException1 ( TwoDimensionalLaserError ,
unsigned int ,
<< "Laser beam orientation in : "<< arg1<< "-dimensional simulations cannot be defined in the z direction"  )

◆ DeclException2() [1/2]

DeclException2 ( OrderOfFluidIDsError ,
int ,
int ,
<< "The first fluid's id is "<< arg1<< " and the id of the second fluid is "<< arg2<< ". The first fluid's id should be lower than the second fluid's."  )

◆ DeclException2() [2/2]

DeclException2 ( PhaseChangeIntervalError ,
double ,
double ,
<< "Liquidus temperature : "<< arg1<< " is not strictly superior to Solidus temperature: "<< arg2<< " The liquidus temperature specific is below or equal to the solidus temperature."<< " The phase change specific heat model requires that T_liquidus,
T_solidus."  )

◆ DeclException3() [1/2]

DeclException3 ( MultipleAdaptationSizeError ,
std::string ,
unsigned int ,
unsigned int ,
<< "Error in 'mesh adaptation' : number of '"<< arg1<< "' ("<< arg2<< ") does not correspond to the number of 'variables' ("<< arg3<< ")"  )

◆ DeclException3() [2/2]

DeclException3 ( ParameterStrictlyGreaterThanError ,
std::string ,
double ,
double ,
<< "The parameter '"<< arg1<< "' is set to: "<< arg2<< ". However,
it should be strictly greater than "<< arg3<< "."  )

◆ DeclException4() [1/2]

DeclException4 ( ListSizeIncoherentWithDeclaredNumber ,
std::string ,
unsigned int ,
std::string ,
unsigned int ,
<< "'"<< arg1<< "' was set to "<< arg2<< " and the list '"<< arg3<< "' has a size of "<< arg4<< ". However,
the list size should correspond to the number declared."  )

◆ DeclException4() [2/2]

DeclException4 ( ListsSizeMismatch ,
std::string ,
std::string ,
unsigned int ,
unsigned int ,
<< "There is a size mismatch between 2 lists. The list '"<< arg1<< "' and the list '"<< arg2<< "' have respectively sizes of "<< arg3<< " and "<< arg4<< ". However,
they should be of the same size."  )

◆ DeclExceptionMsg()

DeclExceptionMsg ( MaterialInteractionTypeError ,
"Invalid material interaction type. The choices are <fluid_fluid|fluid_solid|fluid_dispersed_phase>."  )