Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

ENH: dynamicFvMesh: added region support

  • Loading branch information...
commit ba860a65e2ea49d11a9747c0a7bf0eb12c9dd36a 1 parent 12fd7d7
mattijs authored
Showing with 32 additions and 0 deletions.
  1. +32 −0 src/dynamicFvMesh/include/createNamedDynamicFvMesh.H
View
32 src/dynamicFvMesh/include/createNamedDynamicFvMesh.H
@@ -0,0 +1,32 @@
+ Foam::word regionName;
+
+ if (args.optionReadIfPresent("region", regionName))
+ {
+ Foam::Info
+ << "Create mesh " << regionName << " for time = "
+ << runTime.timeName() << Foam::nl << Foam::endl;
+ }
+ else
+ {
+ regionName = Foam::fvMesh::defaultRegion;
+ Foam::Info
+ << "Create mesh for time = "
+ << runTime.timeName() << Foam::nl << Foam::endl;
+ }
+
+
+ autoPtr<dynamicFvMesh> meshPtr
+ (
+ dynamicFvMesh::New
+ (
+ IOobject
+ (
+ regionName,
+ runTime.timeName(),
+ runTime,
+ IOobject::MUST_READ
+ )
+ )
+ );
+
+ dynamicFvMesh& mesh = meshPtr();
Please sign in to comment.
Something went wrong with that request. Please try again.