Overture
Version 25
Main Page
Namespaces
Classes
Files
File List
File Members
Overture.v25.d
include
BodyForce.h
Go to the documentation of this file.
1
#ifndef BODY_FORCE_H
2
#define BODY_FORCE_H
3
4
#include "
Overture.h
"
5
#define KK_DEBUG
6
#include "
DBase.hh
"
7
using namespace
DBase;
8
9
10
// ====================================================================================
11
// This class holds information about different body forces (and boundary forcing).
12
// ====================================================================================
13
class
BodyForce
14
{
15
16
public
:
17
18
// The temperature BC is of the form
19
// a0*T + an*T.n = g (constant coefficients)
20
// a0(x)*T + an(x)*T.n = g (variable coefficients)
21
enum
temperatureBoundaryConditionOptionEnum
22
{
23
temperatureBoundaryConditionIsConstantCoefficients
,
24
temperatureBoundaryConditionIsVariableCoefficients
25
};
26
27
enum
bodyTemperatureOptionEnum
28
{
29
adiabaticBody=0,
30
isothermalBody
,
31
conductingBody
32
};
33
34
35
BodyForce
();
36
~
BodyForce
();
37
38
39
virtual
int
get
(
const
GenericDataBase
& dir,
const
aString
& name);
// get from a database file
40
virtual
int
put(
GenericDataBase
& dir,
const
aString
& name)
const
;
// put to a database file
41
42
// plot forcing regions
43
static
int
plotForcingRegions(
GenericGraphicsInterface
&gi,
DataBase
& dbase,
CompositeGrid
& cg,
44
GraphicsParameters
& psp );
45
46
// This database contains the parameters and data for the body force:
47
DataBase
dbase
;
48
49
50
51
};
52
53
// -------------------------------------------------------------------------------------------
54
// Here is the class where we keep current parameters that define the current region for a body force:
55
// These parameters are only used while the body force is being defined.
56
// ------------------------------------------------------------------------------------------
57
class
BodyForceRegionParameters
58
{
59
public
:
60
61
BodyForceRegionParameters
();
62
~
BodyForceRegionParameters
();
63
64
// This database contains the parameters for all types of body forces
65
DataBase
dbase
;
66
67
};
68
69
70
#endif
Generated on Fri Jan 4 2013 10:17:48 for Overture by
1.8.3