46int main(
int argc,
char *argv[])
57 mesh.time().caseSystem(),
59 IOobject::MUST_READ_IF_MODIFIED,
65 if (Pstream::master())
67 Foam::cp(optDict.objectPath(), optDict.objectPath() +
".org");
72 const dictionary& movementDict =
73 optDict.subDict(
"optimisation").subDict(
"meshMovement");
76 autoPtr<optMeshMovement> movementPtr
77 (optMeshMovement::New(
mesh, movementDict, patchIDs));
79 movementPtr().getActiveDesignVariables();
82 dictionary& updateMethodDict =
83 optDict.subDict(
"optimisation").subDict(
"updateMethod");
84 autoPtr<updateMethod> updMethod(updateMethod::New(
mesh, updateMethodDict));
87 dictionary& coeffsDict = updateMethodDict.subDictOrAdd(updMethod().
type());
90 "activeDesignVariables",
91 activeDesignVariables,
96 optDict.regIOobject::writeObject
98 IOstreamOption(IOstream::ASCII),
List< label > labelList
A List of labels.
messageStream Info
Information stream (stdout output on master, null elsewhere)
Ostream & endl(Ostream &os)
Add newline and flush stream.
bool cp(const fileName &src, const fileName &dst, const bool followLink=true)
Copy the source to the destination (recursively if necessary).