KratosMultiphysics
KRATOS Multiphysics (Kratos) is a framework for building parallel, multi-disciplinary simulation software, aiming at modularity, extensibility, and high performance. Kratos is written in C++, and counts with an extensive Python interface.
radiation_settings.h
Go to the documentation of this file.
1 // | / |
2 // ' / __| _` | __| _ \ __|
3 // . \ | ( | | ( |\__ \.
4 // _|\_\_| \__,_|\__|\___/ ____/
5 // Multi-Physics
6 //
7 // License: BSD License
8 // Kratos default license: kratos/license.txt
9 //
10 // Main authors: Pooyan Dadvand
11 //
12 
13 
14 
15 
16 
17 
18 
19 
20 
21 
22 
23 
24 #if !defined(KRATOS_RADIATION_SETTINGS_INCLUDED )
25 #define KRATOS_RADIATION_SETTINGS_INCLUDED
26 
27 
28 
29 // System includes
30 #include <string>
31 #include <iostream>
32 
33 
34 // External includes
35 
36 
37 // Project includes
38 #include "includes/define.h"
39 
40 
41 namespace Kratos
42 {
43 
46 
50 
54 
58 
62 
64 
67 {
68 public:
71 
74 
78 
82  mpDensityVar(rOther.mpDensityVar),
84  mpUnknownVar(rOther.mpUnknownVar),
90  {
91  }
92 
94  virtual ~RadiationSettings() {};
95 
100  {
101  mpDensityVar = &rvar;
102  }
104  {
105  return *mpDensityVar;
106  }
107 
109  {
110  mpDiffusionVar = &rvar;
111  }
113  {
114  return *mpDiffusionVar;
115  }
116 
118  {
119  mpUnknownVar = &rvar;
120  }
122  {
123  return *mpUnknownVar;
124  }
125 
127  {
128  mpVolumeSourceVar = &rvar;
129  }
131  {
132  return *mpVolumeSourceVar;
133  }
134 
136  {
137  mpSurfaceSourceVar = &rvar;
138  }
140  {
141  return *mpSurfaceSourceVar;
142  }
143 
145  {
146  mpProjectionVar = &rvar;
147  }
149  {
150  return *mpProjectionVar;
151  }
152 
154  {
155  mpConvectionVar = &rvar;
156  }
158  {
159  return *mpConvectionVar;
160  }
161 
163  {
164  mpMeshVelocityVar = &rvar;
165  }
167  {
168  return *mpMeshVelocityVar;
169  }
170 
174 
175 
181  {
182  mpDensityVar = rOther.mpDensityVar;
183  mpDiffusionVar = rOther.mpDensityVar;
184  mpUnknownVar = rOther.mpUnknownVar;
190  return *this;
191  }
192 
193 
197 
198 
202 
204  virtual std::string Info() const
205  {
206  std::stringstream buffer;
207  buffer << "RadiationSettings #" ;
208  return buffer.str();
209  }
210 
212  virtual void PrintInfo(std::ostream& rOStream) const
213  {
214  rOStream << "RadiationSettings #";
215  }
216 
218  virtual void PrintData(std::ostream& rOStream) const
219  {
220  }
221 
222 
226 
227 
229 
230 protected:
233 
234 
246 
247 
251 
252 
256 
257 
261 
262 
266 
267 
271 
272 
274 
275 private:
278 
279 
283 
284 
288 
289  friend class Serializer;
290 
291  virtual void save(Serializer& rSerializer) const
292  {
294  }
295 
296  virtual void load(Serializer& rSerializer)
297  {
299  }
300 
304 
305 
309 
310 
314 
315 
319 
320 
324 
325 
326 
327 
328 
330 
331 }; // Class RadiationSettings
332 
334 
337 
338 
342 
343 
345 inline std::istream& operator >> (std::istream& rIStream, RadiationSettings& rThis)
346 {
347  return rIStream;
348 }
349 
351 inline std::ostream& operator << (std::ostream& rOStream, const RadiationSettings& rThis)
352 {
353  rThis.PrintInfo(rOStream);
354  rOStream << std::endl;
355  rThis.PrintData(rOStream);
356 
357  return rOStream;
358 }
360 
361 #undef KRATOS_EXPORT_MACRO
362 #define KRATOS_EXPORT_MACRO KRATOS_API
363 
364 KRATOS_DEFINE_VARIABLE(RadiationSettings::Pointer, RADIATION_SETTINGS)
365 
366 #undef KRATOS_EXPORT_MACRO
367 #define KRATOS_EXPORT_MACRO KRATOS_NO_EXPORT
368 
369 } // namespace Kratos.
370 
371 #endif // KRATOS_CONVECTION_DIFFUSION_SETTINGS_INCLUDED defined
372 
Short class definition.
Definition: radiation_settings.h:67
const Variable< double > * mpVolumeSourceVar
Definition: radiation_settings.h:241
void SetUnknownVariable(const Variable< double > &rvar)
Definition: radiation_settings.h:117
const Variable< double > * mpProjectionVar
Definition: radiation_settings.h:243
virtual void PrintData(std::ostream &rOStream) const
Print object's data.
Definition: radiation_settings.h:218
const Variable< array_1d< double, 3 > > & GetMeshVelocityVariable()
Definition: radiation_settings.h:166
const Variable< double > * mpSurfaceSourceVar
Definition: radiation_settings.h:242
void SetDiffusionVariable(const Variable< double > &rvar)
Definition: radiation_settings.h:108
const Variable< array_1d< double, 3 > > * mpConvectionVar
Definition: radiation_settings.h:244
const Variable< array_1d< double, 3 > > * mpMeshVelocityVar
Definition: radiation_settings.h:245
const Variable< double > * mpDiffusionVar
Definition: radiation_settings.h:239
const Variable< double > * mpUnknownVar
Definition: radiation_settings.h:240
RadiationSettings(const RadiationSettings &rOther)
Definition: radiation_settings.h:81
virtual void PrintInfo(std::ostream &rOStream) const
Print information about this object.
Definition: radiation_settings.h:212
RadiationSettings & operator=(RadiationSettings const &rOther)
Definition: radiation_settings.h:180
const Variable< double > & GetSurfaceSourceVariable()
Definition: radiation_settings.h:139
const Variable< array_1d< double, 3 > > & GetConvectionVariable()
Definition: radiation_settings.h:157
RadiationSettings()
Default constructor.
Definition: radiation_settings.h:80
const Variable< double > & GetProjectionVariable()
Definition: radiation_settings.h:148
virtual ~RadiationSettings()
Destructor.
Definition: radiation_settings.h:94
const Variable< double > * mpDensityVar
Definition: radiation_settings.h:238
const Variable< double > & GetDiffusionVariable()
Definition: radiation_settings.h:112
const Variable< double > & GetUnknownVariable()
Definition: radiation_settings.h:121
const Variable< double > & GetDensityVariable()
Definition: radiation_settings.h:103
KRATOS_CLASS_POINTER_DEFINITION(RadiationSettings)
Pointer definition of RadiationSettings.
void SetVolumeSourceVariable(const Variable< double > &rvar)
Definition: radiation_settings.h:126
virtual std::string Info() const
Turn back information as a string.
Definition: radiation_settings.h:204
void SetConvectionVariable(const Variable< array_1d< double, 3 > > &rvar)
Definition: radiation_settings.h:153
void SetDensityVariable(const Variable< double > &rvar)
Definition: radiation_settings.h:99
const Variable< double > & GetVolumeSourceVariable()
Definition: radiation_settings.h:130
void SetSurfaceSourceVariable(const Variable< double > &rvar)
Definition: radiation_settings.h:135
void SetProjectionVariable(const Variable< double > &rvar)
Definition: radiation_settings.h:144
void SetMeshVelocityVariable(const Variable< array_1d< double, 3 > > &rvar)
Definition: radiation_settings.h:162
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