Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
openfoam
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Development
openfoam
Commits
fe0bb227
Commit
fe0bb227
authored
8 years ago
by
Mark Olesen
Browse files
Options
Downloads
Patches
Plain Diff
STYLE: adjust documentation for scalarTransport FO
parent
77a3022c
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/functionObjects/solvers/scalarTransport/scalarTransport.C
+5
-10
5 additions, 10 deletions
...functionObjects/solvers/scalarTransport/scalarTransport.C
src/functionObjects/solvers/scalarTransport/scalarTransport.H
+10
-9
10 additions, 9 deletions
...functionObjects/solvers/scalarTransport/scalarTransport.H
with
15 additions
and
19 deletions
src/functionObjects/solvers/scalarTransport/scalarTransport.C
+
5
−
10
View file @
fe0bb227
...
...
@@ -201,7 +201,7 @@ Foam::functionObjects::scalarTransport::scalarTransport
resetOnStartUp_
(
false
),
schemesField_
(
"unknown-schemesField"
),
fvOptions_
(
mesh_
),
bounded01_
(
dict
.
lookupOrDefault
<
bool
>
(
"bounded01"
,
true
))
bounded01_
(
dict
.
lookupOrDefault
<
Switch
>
(
"bounded01"
,
true
))
{
read
(
dict
);
...
...
@@ -235,12 +235,7 @@ bool Foam::functionObjects::scalarTransport::read(const dictionary& dict)
dict
.
readIfPresent
(
"bounded01"
,
bounded01_
);
schemesField_
=
dict
.
lookupOrDefault
(
"schemesField"
,
fieldName_
);
constantD_
=
false
;
if
(
dict
.
readIfPresent
(
"D"
,
D_
))
{
constantD_
=
true
;
}
constantD_
=
dict
.
readIfPresent
(
"D"
,
D_
);
dict
.
readIfPresent
(
"nCorr"
,
nCorr_
);
dict
.
readIfPresent
(
"resetOnStartUp"
,
resetOnStartUp_
);
...
...
@@ -256,11 +251,11 @@ bool Foam::functionObjects::scalarTransport::read(const dictionary& dict)
bool
Foam
::
functionObjects
::
scalarTransport
::
execute
()
{
Log
<<
type
()
<<
" write:"
<<
endl
;
volScalarField
&
s
=
transportedField
();
const
surfaceScalarField
&
phi
=
Log
<<
type
()
<<
" execute: "
<<
s
.
name
()
<<
endl
;
const
surfaceScalarField
&
phi
=
mesh_
.
lookupObject
<
surfaceScalarField
>
(
phiName_
);
// Calculate the diffusivity
...
...
This diff is collapsed.
Click to expand it.
src/functionObjects/solvers/scalarTransport/scalarTransport.H
+
10
−
9
View file @
fe0bb227
...
...
@@ -111,17 +111,18 @@ Usage
\table
Property | Description | Required | Default value
type | Type name: scalarTransport | yes |
phi | Name of flux field | yes |
field | Name of the scalar field | no | s
phi | Name of flux field | no | phi
rho | Name of density field | no | rho
phase | Name of the phase
name
| no | none
phase | Name of the phase
| no | none
nut | Name of the turbulence viscosity | no | none
D | Diffusion coefficient | no | auto generated
nCorr | Number of correctors | no | 0
resetOnStartUp | Reset scalar to zero on start-up | no | no
schemesField | Name of field to specify schemes | no | field
N
ame
schemesField | Name of field to specify schemes | no | field
n
ame
fvOptions | List of scalar sources | no |
bounded01 | Bounds scalar between 0-1 for multiphase | no |true
phasePhiCompressed |Compressed flux for VOF | no | alphaPhiUn
bounded01 | Bounds scalar between 0-1 for multiphase | no |
true
phasePhiCompressed |
Compressed flux for VOF | no | alphaPhiUn
\endtable
See also
...
...
@@ -156,10 +157,10 @@ class scalarTransport
{
// Private data
//- Name of
field to process
//- Name of
the transport field.
word
fieldName_
;
//- Name of flux field
//- Name of flux field
(optional)
word
phiName_
;
//- Name of density field (optional)
...
...
@@ -168,10 +169,10 @@ class scalarTransport
//- Name of turbulent viscosity field (optional)
word
nutName_
;
//- Name of phase field
//- Name of phase field
(optional)
word
phaseName_
;
//- Name of phase field compressed flux
//- Name of phase field compressed flux
(optional)
word
phasePhiCompressedName_
;
//- Diffusion coefficient (optional)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment