28 #include <lifev/core/solver/ADRData.hpp> 51 M_stabilization_list.add (
"ip", ADR_IP_STABILIZATION,
"interior penalty " );
52 M_stabilization_list.add (
"sd", ADR_SD_STABILIZATION,
"stream-line difussion" );
53 M_stabilization_list.add (
"none", ADR_NO_STABILIZATION,
"none (default)" );
83 std::string corrected_section ( section );
84 if ( ( ! section.empty() ) && ( section[section.length() - 1] !=
'/' ) )
86 corrected_section = section +
'/';
89 M_diffusionCoefficient = dfile ( (corrected_section +
"physics/diffusionCoefficient").data(), 1. );
90 M_reactionCoefficient = dfile ( (corrected_section +
"physics/reactionCoefficient").data(), 1. );
91 M_steady = dfile ( (corrected_section +
"physics/steady").data(), 1 );
92 M_solutionFieldDimension = dfile ( (corrected_section +
"physics/solutionFieldDimension").data(), 1 );
95 M_verbose = dfile ( (corrected_section +
"miscellaneous/verbose").data(), 1 );
98 M_solFEType = dfile ( (corrected_section +
"space_discretization/sol_FEtype").data(),
"P1");
102 M_stabilizationMethod = ADRStabilization ( M_stabilization_list.value ( dfile ( (corrected_section +
"space_discretization/stabilization").data(),
"none") ) );
103 M_stabilizationCoefficient = dfile ( (corrected_section +
"space_discretization/stabilizationCoefficient").data(), 0. );
111 c <<
"\n*** DataADR: values for user-defined data\n";
113 c <<
"\n[/physics]" << std::endl;
114 c <<
"diffusionCoefficient\t\t= " << M_diffusionCoefficient << std::endl;
115 c <<
"reactionCoefficient\t\t= " << M_reactionCoefficient << std::endl;
116 c <<
"steady\t\t= " << M_steady << std::endl;
117 c <<
"solutionFieldDimension\t\t= " << M_solutionFieldDimension << std::endl;
119 c <<
"\n[/miscellaneous]" << std::endl;
120 c <<
"verbose\t\t= " << M_verbose << std::endl;
122 c <<
"\n[/space_discretization]" << std::endl;
123 c <<
"sol_FEtype\t\t= " << M_solFEType << std::endl;
126 c <<
"stabilization\t\t= ";
129 case ADR_NO_STABILIZATION:
132 case ADR_IP_STABILIZATION:
135 case ADR_SD_STABILIZATION:
140 c <<
"stabilizationCoefficient\t\t= " << M_stabilizationCoefficient << std::endl;
Real M_diffusionCoefficient
Physics.
DataADR()
Empty Constructor.
void showMe(std::ostream &output=std::cout) const
Display the internal values.
Real M_reactionCoefficient
void updateInverseJacobian(const UInt &iQuadPt)
DataADR(const DataADR &dataADR)
Copy constructor.
UInt M_verbose
Miscellaneous parameters.
Real M_stabilizationCoefficient
std::string M_solFEType
Type of finite element (P1, P2, ...) for the solution.
TimeData_ptr_type M_TimeDataPtr
Data container for time parameters.
UInt M_solutionFieldDimension
ADRStabilization M_stabilizationMethod
void setup(const GetPot &dataFile, const std::string §ion="adr")
Read the dataFile and set all the internal quantities.