Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
319292bc
Commit
319292bc
authored
Aug 01, 2011
by
mattijs
Browse files
ENH: potentialFoam: add initialiseUBCs option
parent
537a916d
Changes
2
Hide whitespace changes
Inline
Side-by-side
applications/solvers/basic/potentialFoam/createFields.H
View file @
319292bc
...
...
@@ -44,6 +44,12 @@
fvc
::
interpolate
(
U
)
&
mesh
.
Sf
()
);
if
(
args
.
optionFound
(
"initialiseUBCs"
))
{
U
.
correctBoundaryConditions
();
phi
=
fvc
::
interpolate
(
U
)
&
mesh
.
Sf
();
}
label
pRefCell
=
0
;
scalar
pRefValue
=
0
.
0
;
...
...
applications/solvers/basic/potentialFoam/potentialFoam.C
View file @
319292bc
...
...
@@ -38,6 +38,11 @@ Description
int
main
(
int
argc
,
char
*
argv
[])
{
argList
::
addBoolOption
(
"writep"
,
"write the final pressure field"
);
argList
::
addBoolOption
(
"initialiseUBCs"
,
"initialise U boundary conditions"
);
#include "setRootCase.H"
#include "createTime.H"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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