CG
Version 25
Main Page
Namespaces
Classes
Files
File List
File Members
cg.v25
common
src
FlowSolutions.h
Go to the documentation of this file.
1
#ifndef FLOW_SLOUTIONS_H
2
#define FLOW_SLOUTIONS_H
3
4
#include "Overture.h"
5
6
class
PistonMotion
;
7
8
// =================================================================
9
// This class defines some known solutions for various "flows"
10
// =================================================================
11
12
class
FlowSolutions
13
{
14
public
:
15
16
enum
KnownSolutionsEnum
17
{
18
superSonicExpandingFlow
,
19
specifiedPistonMotion
,
20
forcedPistonMotion
,
21
obliqueShockFlow
,
22
deformingDiffuser
,
23
shockElasticPiston
24
};
25
26
27
FlowSolutions
();
28
~FlowSolutions
();
29
30
int
31
getFlowSolution
(
const
KnownSolutionsEnum
knownSolution,
32
realCompositeGridFunction & ua,
int
*ipar, real *rpar );
33
34
int
35
getFlowSolution
(
const
KnownSolutionsEnum
knownSolution,
36
CompositeGrid &
cg
,
int
grid
, realArray & ua,
int
*ipar, real *rpar,
37
const
Index &
I1
,
const
Index &
I2
,
const
Index &
I3
);
38
39
int
40
getFlowSolution
(
PistonMotion
& pistonMotion,
41
CompositeGrid &
cg
,
int
grid
, realArray & ua,
int
*ipar, real *rpar,
42
const
Index &
I1
,
const
Index &
I2
,
const
Index &
I3
);
43
44
int
45
getDeformingDiffuser
(
const
KnownSolutionsEnum
knownSolution,
46
CompositeGrid &
cg
,
int
grid
, realArray & ua,
int
*ipar, real *rpar,
47
const
Index &
I1
,
const
Index &
I2
,
const
Index &
I3
);
48
49
50
int
51
getObliqueShockFlow
(
const
KnownSolutionsEnum
knownSolution,
52
CompositeGrid &
cg
,
int
grid
, realArray & ua,
int
*ipar, real *rpar,
53
const
Index &
I1
,
const
Index &
I2
,
const
Index &
I3
);
54
55
int
56
getPistonFlow
(
const
KnownSolutionsEnum
knownSolution,
57
CompositeGrid &
cg
,
int
grid
, realArray & ua,
int
*ipar, real *rpar,
58
const
Index &
I1
,
const
Index &
I2
,
const
Index &
I3
);
59
60
int
61
getShockElasticPistonFlow
(
const
KnownSolutionsEnum
knownSolution,
62
CompositeGrid &
cg
,
int
grid
, realArray &
u
,
int
*ipar, real *rpar,
63
const
Index &
I1
,
const
Index &
I2
,
const
Index &
I3
);
64
65
int
66
getSupersonicExpandingFlow
( realCompositeGridFunction & ua,
int
*ipar, real *rpar );
67
68
int
69
getSupersonicExpandingFlow
( CompositeGrid &
cg
,
int
grid
, realArray & ua,
int
*ipar, real *rpar,
70
const
Index &
I1
,
const
Index &
I2
,
const
Index &
I3
);
71
72
protected
:
73
74
// real rho0, p0, u0, v0, a0;
75
76
realCompositeGridFunction *
v
;
77
RealArray *
wallDataPointer
;
78
79
};
80
81
#endif
Generated on Fri Jan 4 2013 10:19:18 for CG by
1.8.3