48int main(
int argc,
char *argv[])
52 "Mirrors a mesh around a given plane."
55 argList::addOption(
"dict",
"file",
"Alternative mirrorMeshDict");
56 argList::setAdvanced(
"decomposeParDict");
62 const bool overwrite =
args.
found(
"overwrite");
76 polyMesh::defaultRegion,
91 IOobject::READ_IF_PRESENT,
105 IOstream::defaultPrecision(
max(10u, IOstream::defaultPrecision()));
110 const_cast<fvMesh&
>(mMesh).setInstance(
mesh.facesInstance());
111 Info<<
"Writing mirrored mesh" <<
endl;
146 refData.updateMesh(map);
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
Defines the attributes of an object for which implicit objectRegistry management is supported,...
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
bool found(const word &optName) const
Return true if the named option is found.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Mesh data needed to do the Finite Volume discretisation.
virtual bool write(const bool valid=true) const
Write mesh using IO settings from time.
Various for reading/decomposing/reconstructing/distributing refinement data.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
A class for handling words, derived from Foam::string.
const word dictName("faMeshDefinition")
messageStream Info
Information stream (stdout output on master, null elsewhere)
Ostream & endl(Ostream &os)
Add newline and flush stream.
constexpr char nl
The newline '\n' character (0x0a)
Foam::argList args(argc, argv)