Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
939a46c8
Commit
939a46c8
authored
Jun 27, 2008
by
henry
Browse files
Added pd, changed p BCs to calculated and added pRef to thermophysicalProperties
parent
1202a245
Changes
11
Hide whitespace changes
Inline
Side-by-side
applications/solvers/heatTransfer/buoyantFoam/createFields.H
View file @
939a46c8
...
...
@@ -58,7 +58,7 @@
Info
<<
"Calculating field g.h
\n
"
<<
endl
;
volScalarField
gh
(
"gh"
,
g
&
mesh
.
C
());
dimensionedScalar
pRef
(
"pRef"
,
p
.
dimensions
(),
1.0e5
);
dimensionedScalar
pRef
(
"pRef"
,
p
.
dimensions
(),
thermo
->
lookup
(
"pRef"
)
);
Info
<<
"Creating field pd
\n
"
<<
endl
;
volScalarField
pd
...
...
applications/solvers/heatTransfer/buoyantSimpleFoam/createFields.H
View file @
939a46c8
...
...
@@ -54,8 +54,7 @@
Info
<<
"Calculating field g.h
\n
"
<<
endl
;
volScalarField
gh
(
"gh"
,
g
&
mesh
.
C
());
dimensionedScalar
pRef
(
"pRef"
,
p
.
dimensions
(),
1.0e5
);
dimensionedScalar
pRef
(
"pRef"
,
p
.
dimensions
(),
thermo
->
lookup
(
"pRef"
));
Info
<<
"Creating field pd
\n
"
<<
endl
;
volScalarField
pd
...
...
@@ -77,7 +76,13 @@
label
pdRefCell
=
0
;
scalar
pdRefValue
=
0
.
0
;
setRefCell
(
pd
,
mesh
.
solutionDict
().
subDict
(
"SIMPLE"
),
pdRefCell
,
pdRefValue
);
setRefCell
(
pd
,
mesh
.
solutionDict
().
subDict
(
"SIMPLE"
),
pdRefCell
,
pdRefValue
);
dimensionedScalar
initialMass
=
fvc
::
domainIntegrate
(
rho
);
applications/solvers/heatTransfer/buoyantSimpleRadiationFoam/createFields.H
View file @
939a46c8
...
...
@@ -55,8 +55,7 @@
Info
<<
"Calculating field g.h
\n
"
<<
endl
;
volScalarField
gh
(
"gh"
,
g
&
mesh
.
C
());
dimensionedScalar
pRef
(
"pRef"
,
p
.
dimensions
(),
1.0e5
);
dimensionedScalar
pRef
(
"pRef"
,
p
.
dimensions
(),
thermo
->
lookup
(
"pRef"
));
Info
<<
"Creating field pd
\n
"
<<
endl
;
volScalarField
pd
...
...
applications/solvers/heatTransfer/chtMultiRegionFoam/fluid/createFluidFields.H
View file @
939a46c8
...
...
@@ -11,7 +11,12 @@
List
<
scalar
>
initialMassf
(
fluidRegions
.
size
());
dimensionedScalar
pRef
(
"pRef"
,
dimensionSet
(
1
,
-
1
,
-
2
,
0
,
0
),
1.0E5
);
dimensionedScalar
pRef
(
"pRef"
,
dimensionSet
(
1
,
-
1
,
-
2
,
0
,
0
),
rp
.
lookup
(
"pRef"
)
);
// Populate fluid field pointer lists
forAll
(
fluidRegions
,
i
)
...
...
applications/solvers/heatTransfer/lesBuoyantFoam/createFields.H
View file @
939a46c8
...
...
@@ -53,7 +53,7 @@
Info
<<
"Calculating field g.h
\n
"
<<
endl
;
volScalarField
gh
(
"gh"
,
g
&
mesh
.
C
());
dimensionedScalar
pRef
(
"pRef"
,
p
.
dimensions
(),
0
.
0
);
dimensionedScalar
pRef
(
"pRef"
,
p
.
dimensions
(),
thermo
->
lookup
(
"pRef"
)
);
Info
<<
"Creating field pd
\n
"
<<
endl
;
volScalarField
pd
...
...
tutorials/buoyantFoam/hotRoom/0/p
View file @
939a46c8
...
...
@@ -20,21 +20,21 @@ internalField uniform 100000;
boundaryField
{
floor
floor
{
type
fixedFluxBuoyantPressure
;
type
calculated
;
value uniform 100000;
}
ceiling
ceiling
{
type
fixedFluxBuoyantPressure
;
type
calculated
;
value uniform 100000;
}
fixedWalls
fixedWalls
{
type
fixedFluxBuoyantPressure
;
type
calculated
;
value uniform 100000;
}
}
...
...
tutorials/buoyantFoam/hotRoom/constant/thermophysicalProperties
View file @
939a46c8
...
...
@@ -18,4 +18,6 @@ thermoType hThermo<pureMixture<constTransport<specieThermo<hConstThermo<per
mixture air 1 28.9 1000 0 1.8e-05 0.7;
pRef 1e5;
// ************************************************************************* //
tutorials/buoyantSimpleFoam/hotRoom/0/p
View file @
939a46c8
...
...
@@ -16,25 +16,25 @@ FoamFile
dimensions [1 -1 -2 0 0 0 0];
internalField uniform
10000
0;
internalField uniform 0;
boundaryField
{
floor
floor
{
type
fixedFluxBuoyantPressure
;
type
calculated
;
value uniform 100000;
}
ceiling
ceiling
{
type
fixedFluxBuoyantPressure
;
type
calculated
;
value uniform 100000;
}
fixedWalls
fixedWalls
{
type
fixedFluxBuoyantPressure
;
type
calculated
;
value uniform 100000;
}
}
...
...
tutorials/buoyantSimpleFoam/hotRoom/constant/thermophysicalProperties
View file @
939a46c8
...
...
@@ -18,4 +18,6 @@ thermoType hThermo<pureMixture<constTransport<specieThermo<hConstThermo<per
mixture air 1 28.9 1000 0 1.8e-05 0.7;
pRef 1e5;
// ************************************************************************* //
tutorials/buoyantSimpleRadiationFoam/hotRadiationRoom/0/p
View file @
939a46c8
...
...
@@ -20,27 +20,27 @@ internalField uniform 100000;
boundaryField
{
floor
floor
{
type
fixedFluxBuoyantPressure
;
type
calculated
;
value uniform 100000;
}
ceiling
ceiling
{
type
fixedFluxBuoyantPressure
;
type
calculated
;
value uniform 100000;
}
fixedWalls
fixedWalls
{
type
fixedFluxBuoyantPressure
;
type
calculated
;
value uniform 100000;
}
box
{
type
fixedFluxBuoyantPressure
;
type
calculated
;
value uniform 100000;
}
}
...
...
tutorials/buoyantSimpleRadiationFoam/hotRadiationRoom/constant/thermophysicalProperties
View file @
939a46c8
...
...
@@ -18,4 +18,6 @@ thermoType hThermo<pureMixture<constTransport<specieThermo<hConstThermo<per
mixture air 1 28.9 1000 0 1.8e-05 0.7;
pRef 1e5;
// ************************************************************************* //
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment