Permalink
Browse files

ENH: potentialFoam: add initialiseUBCs option

  • Loading branch information...
1 parent 316ed45 commit ae8dc909e7539ea6637285e0fadeeecdb9e9a349 mattijs committed Aug 1, 2011
@@ -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;
@@ -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"

0 comments on commit ae8dc90

Please sign in to comment.