14 #if !defined(KRATOS_CONVECTION_DIFFUSION_SETTINGS_INCLUDED )
15 #define KRATOS_CONVECTION_DIFFUSION_SETTINGS_INCLUDED
73 mpDensityVar(rOther.mpDensityVar),
74 mpDiffusionVar(rOther.mpDiffusionVar),
75 mpUnknownVar(rOther.mpUnknownVar),
76 mpVolumeSourceVar(rOther.mpVolumeSourceVar),
77 mpSurfaceSourceVar(rOther.mpSurfaceSourceVar),
78 mpProjectionVar(rOther. mpProjectionVar),
79 mpConvectionVar(rOther.mpConvectionVar),
80 mpGradientVar(rOther.mpGradientVar),
81 mpMeshVelocityVar(rOther.mpMeshVelocityVar),
82 mpTransferCoefficientVar(rOther.mpTransferCoefficientVar),
83 mpVelocityVar(rOther.mpVelocityVar),
84 mpSpecificHeatVar(rOther.mpSpecificHeatVar),
85 mpReactionVar(rOther.mpReactionVar),
86 mpReactionGradientVar(rOther.mpReactionGradientVar),
87 mis_defined_DensityVar(rOther.mis_defined_DensityVar),
88 mis_defined_DiffusionVar(rOther.mis_defined_DiffusionVar),
89 mis_defined_UnknownVar(rOther.mis_defined_UnknownVar),
90 mis_defined_VolumeSourceVar(rOther.mis_defined_VolumeSourceVar),
91 mis_defined_SurfaceSourceVar(rOther.mis_defined_SurfaceSourceVar),
92 mis_defined_ProjectionVar(rOther.mis_defined_ProjectionVar),
93 mis_defined_ConvectionVar(rOther.mis_defined_ConvectionVar),
94 mis_defined_GradientVar(rOther.mis_defined_GradientVar),
95 mis_defined_MeshVelocityVar(rOther.mis_defined_MeshVelocityVar),
96 mis_defined_TransferCoefficientVar(rOther.mis_defined_TransferCoefficientVar),
97 mis_defined_VelocityVar(rOther.mis_defined_VelocityVar),
98 mis_defined_SpecificHeatVar(rOther.mis_defined_SpecificHeatVar),
99 mis_defined_ReactionVar(rOther.mis_defined_ReactionVar),
100 mIsDefinedReactionGradientVar(rOther.mIsDefinedReactionGradientVar)
112 mpDensityVar = &rvar;
113 mis_defined_DensityVar=
true;
117 return *mpDensityVar;
121 return mpDensityVar !=
nullptr;
126 mpDiffusionVar = &rvar;
127 mis_defined_DiffusionVar=
true;
131 return *mpDiffusionVar;
135 return mpDiffusionVar !=
nullptr;
140 mpUnknownVar = &rvar;
141 mis_defined_UnknownVar=
true;
145 return *mpUnknownVar;
149 return mpUnknownVar !=
nullptr;
154 mpVolumeSourceVar = &rvar;
155 mis_defined_VolumeSourceVar=
true;
159 return *mpVolumeSourceVar;
163 return mpVolumeSourceVar !=
nullptr;
168 mpSurfaceSourceVar = &rvar;
169 mis_defined_SurfaceSourceVar=
true;
173 return *mpSurfaceSourceVar;
177 return mpSurfaceSourceVar !=
nullptr;
182 mpProjectionVar = &rvar;
183 mis_defined_ProjectionVar=
true;
187 return *mpProjectionVar;
191 return mpProjectionVar !=
nullptr;
196 mpConvectionVar = &rvar;
197 mis_defined_ConvectionVar=
true;
201 return *mpConvectionVar;
205 return mpConvectionVar !=
nullptr;
210 mpGradientVar = &rvar;
211 mis_defined_GradientVar=
true;
215 return *mpGradientVar;
219 return mpGradientVar !=
nullptr;
224 mpMeshVelocityVar = &rvar;
225 mis_defined_MeshVelocityVar=
true;
229 return *mpMeshVelocityVar;
233 return mpMeshVelocityVar !=
nullptr;
238 mpTransferCoefficientVar = &rvar;
239 mis_defined_TransferCoefficientVar=
true;
243 return *mpTransferCoefficientVar;
247 return mpTransferCoefficientVar !=
nullptr;
252 mpVelocityVar = &rvar;
253 mis_defined_VelocityVar=
true;
257 return *mpVelocityVar;
261 return mpVelocityVar !=
nullptr;
266 mpSpecificHeatVar = &rvar;
267 mis_defined_SpecificHeatVar=
true;
271 return *mpSpecificHeatVar;
275 return mpSpecificHeatVar !=
nullptr;
280 mpReactionVar = &rvar;
281 mis_defined_ReactionVar=
true;
285 return *mpReactionVar;
289 return mpReactionVar !=
nullptr;
294 mpReactionGradientVar = &rVar;
295 mIsDefinedReactionGradientVar=
true;
299 return *mpReactionGradientVar;
303 return mpReactionGradientVar !=
nullptr;
317 mpDensityVar = rOther.mpDensityVar;
318 mpDiffusionVar = rOther.mpDiffusionVar;
319 mpUnknownVar = rOther.mpUnknownVar;
320 mpVolumeSourceVar = rOther.mpVolumeSourceVar;
321 mpSurfaceSourceVar = rOther.mpSurfaceSourceVar;
322 mpProjectionVar = rOther.mpProjectionVar;
323 mpConvectionVar = rOther.mpConvectionVar;
324 mpGradientVar = rOther.mpGradientVar;
325 mpMeshVelocityVar = rOther.mpMeshVelocityVar;
326 mpTransferCoefficientVar = rOther.mpTransferCoefficientVar;
327 mpVelocityVar = rOther.mpVelocityVar;
328 mpSpecificHeatVar = rOther.mpSpecificHeatVar;
329 mpReactionVar = rOther.mpReactionVar;
330 mpReactionGradientVar = rOther.mpReactionGradientVar;
332 mis_defined_DensityVar = rOther.mis_defined_DensityVar;
333 mis_defined_DiffusionVar = rOther.mis_defined_DiffusionVar;
334 mis_defined_UnknownVar = rOther.mis_defined_UnknownVar;
335 mis_defined_VolumeSourceVar = rOther.mis_defined_VolumeSourceVar;
336 mis_defined_SurfaceSourceVar = rOther.mis_defined_SurfaceSourceVar;
337 mis_defined_ProjectionVar = rOther.mis_defined_ProjectionVar;
338 mis_defined_ConvectionVar = rOther.mis_defined_ConvectionVar;
339 mis_defined_GradientVar = rOther.mis_defined_GradientVar;
340 mis_defined_MeshVelocityVar = rOther.mis_defined_MeshVelocityVar;
341 mis_defined_TransferCoefficientVar = rOther.mis_defined_TransferCoefficientVar;
342 mis_defined_VelocityVar = rOther.mis_defined_VelocityVar;
343 mis_defined_SpecificHeatVar = rOther.mis_defined_SpecificHeatVar;
344 mis_defined_ReactionVar = rOther.mis_defined_ReactionVar;
345 mIsDefinedReactionGradientVar = rOther.mIsDefinedReactionGradientVar;
361 virtual std::string
Info()
const
363 std::stringstream buffer;
364 buffer <<
"ConvectionDiffusionSettings #" ;
371 rOStream <<
"ConvectionDiffusionSettings #";
446 bool mis_defined_DensityVar =
false;
447 bool mis_defined_DiffusionVar =
false;
448 bool mis_defined_UnknownVar =
false;
449 bool mis_defined_VolumeSourceVar =
false;
450 bool mis_defined_SurfaceSourceVar =
false;
451 bool mis_defined_ProjectionVar =
false;
452 bool mis_defined_ConvectionVar =
false;
453 bool mis_defined_GradientVar =
false;
454 bool mis_defined_MeshVelocityVar =
false;
455 bool mis_defined_TransferCoefficientVar =
false;
456 bool mis_defined_VelocityVar =
false;
457 bool mis_defined_SpecificHeatVar =
false;
458 bool mis_defined_ReactionVar =
false;
459 bool mIsDefinedReactionGradientVar =
false;
472 virtual void save(
Serializer& rSerializer)
const;
526 rOStream << std::endl;
533 #undef KRATOS_EXPORT_MACRO
534 #define KRATOS_EXPORT_MACRO KRATOS_API
538 #undef KRATOS_EXPORT_MACRO
539 #define KRATOS_EXPORT_MACRO KRATOS_NO_EXPORT
Convection diffusion settings. This class contains information to be used by the convection diffusion...
Definition: convection_diffusion_settings.h:57
bool IsDefinedVolumeSourceVariable() const
Definition: convection_diffusion_settings.h:161
bool IsDefinedReactionVariable() const
Definition: convection_diffusion_settings.h:287
void SetDiffusionVariable(const Variable< double > &rvar)
Definition: convection_diffusion_settings.h:124
void SetSpecificHeatVariable(const Variable< double > &rvar)
Definition: convection_diffusion_settings.h:264
virtual std::string Info() const
Turn back information as a string.
Definition: convection_diffusion_settings.h:361
bool IsDefinedDiffusionVariable() const
Definition: convection_diffusion_settings.h:133
const Variable< array_1d< double, 3 > > & GetVelocityVariable() const
Definition: convection_diffusion_settings.h:255
bool IsDefinedConvectionVariable() const
Definition: convection_diffusion_settings.h:203
bool IsDefinedMeshVelocityVariable() const
Definition: convection_diffusion_settings.h:231
void SetVolumeSourceVariable(const Variable< double > &rvar)
Definition: convection_diffusion_settings.h:152
const Variable< double > & GetProjectionVariable() const
Definition: convection_diffusion_settings.h:185
virtual void PrintInfo(std::ostream &rOStream) const
Print information about this object.
Definition: convection_diffusion_settings.h:369
void SetDensityVariable(const Variable< double > &rvar)
Definition: convection_diffusion_settings.h:110
bool IsDefinedVelocityVariable() const
Definition: convection_diffusion_settings.h:259
const Variable< double > & GetSurfaceSourceVariable() const
Definition: convection_diffusion_settings.h:171
ConvectionDiffusionSettings()=default
Default constructor.
bool IsDefinedSurfaceSourceVariable() const
Definition: convection_diffusion_settings.h:175
const Variable< array_1d< double, 3 > > & GetReactionGradientVariable() const
Definition: convection_diffusion_settings.h:297
const Variable< double > & GetUnknownVariable() const
Definition: convection_diffusion_settings.h:143
virtual ~ConvectionDiffusionSettings()
Destructor.
Definition: convection_diffusion_settings.h:105
void SetVelocityVariable(const Variable< array_1d< double, 3 > > &rvar)
Definition: convection_diffusion_settings.h:250
const Variable< double > & GetVolumeSourceVariable() const
Definition: convection_diffusion_settings.h:157
void SetGradientVariable(const Variable< array_1d< double, 3 > > &rvar)
Definition: convection_diffusion_settings.h:208
const Variable< array_1d< double, 3 > > & GetMeshVelocityVariable() const
Definition: convection_diffusion_settings.h:227
bool IsDefinedDensityVariable() const
Definition: convection_diffusion_settings.h:119
const Variable< double > & GetSpecificHeatVariable() const
Definition: convection_diffusion_settings.h:269
void SetTransferCoefficientVariable(const Variable< double > &rvar)
Definition: convection_diffusion_settings.h:236
ConvectionDiffusionSettings & operator=(ConvectionDiffusionSettings const &rOther)
Definition: convection_diffusion_settings.h:315
virtual void PrintData(std::ostream &rOStream) const
Print object's data.
Definition: convection_diffusion_settings.h:375
void SetReactionVariable(const Variable< double > &rvar)
Definition: convection_diffusion_settings.h:278
const Variable< double > & GetTransferCoefficientVariable() const
Definition: convection_diffusion_settings.h:241
void SetMeshVelocityVariable(const Variable< array_1d< double, 3 > > &rvar)
Definition: convection_diffusion_settings.h:222
ConvectionDiffusionSettings(const ConvectionDiffusionSettings &rOther)
Definition: convection_diffusion_settings.h:72
const Variable< double > & GetReactionVariable() const
Definition: convection_diffusion_settings.h:283
bool IsDefinedProjectionVariable() const
Definition: convection_diffusion_settings.h:189
bool IsDefinedSpecificHeatVariable() const
Definition: convection_diffusion_settings.h:273
bool IsDefinedReactionGradientVariable() const
Definition: convection_diffusion_settings.h:301
const Variable< array_1d< double, 3 > > & GetGradientVariable() const
Definition: convection_diffusion_settings.h:213
bool IsDefinedTransferCoefficientVariable() const
Definition: convection_diffusion_settings.h:245
void SetProjectionVariable(const Variable< double > &rvar)
Definition: convection_diffusion_settings.h:180
void SetUnknownVariable(const Variable< double > &rvar)
Definition: convection_diffusion_settings.h:138
bool IsDefinedUnknownVariable() const
Definition: convection_diffusion_settings.h:147
void SetSurfaceSourceVariable(const Variable< double > &rvar)
Definition: convection_diffusion_settings.h:166
void SetReactionGradientVariable(const Variable< array_1d< double, 3 >> &rVar)
Definition: convection_diffusion_settings.h:292
const Variable< double > & GetDensityVariable() const
Definition: convection_diffusion_settings.h:115
void SetConvectionVariable(const Variable< array_1d< double, 3 > > &rvar)
Definition: convection_diffusion_settings.h:194
const Variable< array_1d< double, 3 > > & GetConvectionVariable() const
Definition: convection_diffusion_settings.h:199
KRATOS_CLASS_POINTER_DEFINITION(ConvectionDiffusionSettings)
Pointer definition of ConvectionDiffusionSettings.
bool IsDefinedGradientVariable() const
Definition: convection_diffusion_settings.h:217
const Variable< double > & GetDiffusionVariable() const
Definition: convection_diffusion_settings.h:129
The serialization consists in storing the state of an object into a storage format like data file or ...
Definition: serializer.h:123
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21
std::istream & operator>>(std::istream &rIStream, LinearMasterSlaveConstraint &rThis)
input stream function
std::ostream & operator<<(std::ostream &rOStream, const LinearMasterSlaveConstraint &rThis)
output stream function
Definition: linear_master_slave_constraint.h:432
KRATOS_DEFINE_VARIABLE(Vector, BIOT_STRAIN_VECTOR)
def load(f)
Definition: ode_solve.py:307