43 int main(
int argc,
char *argv[])
57 std::ifstream plot3dFile(
args.
args()[1].c_str());
60 std::getline(plot3dFile,
line);
61 std::getline(plot3dFile,
line);
73 Istring >> punctuation;
79 Info<<
"Number of vertices in i direction = " << iPoints <<
endl
80 <<
"Number of vertices in j direction = " << jPoints <<
endl;
83 label nPointsij = (iPoints - 1)*(jPoints - 1);
87 for (
direction comp = 0; comp < 2; comp++)
91 for (
label j = 0; j < jPoints; j++)
93 for (
label i = 0; i < iPoints; i++)
118 fileName pointsFile(runTime.path()/runTime.constant()/
"points.tmp");
132 pointsWedge[i] = (rotateZ &
points[i]);
140 Info<<
"Writing points to: " <<
nl
141 <<
" " << pointsFile <<
endl;
142 pFile << pointsWedge;
#define forAll(list, i)
Loop across all elements in list.
Input from memory buffer stream.
Extract command arguments and options from the supplied argc and argv parameters.
const stringList & args() const
Return arguments.
static void noParallel()
Remove the parallel options.
static SLList< string > validArgs
A list of valid (mandatory) arguments.
bool check(bool checkArgs=true, bool checkOpts=true) const
Check argument list.
Creates a single block of cells from point coordinates, numbers of cells in each direction and an exp...
void exit(const int errNo=1)
Exit : can be called for any error to exit program.
A class for handling file names.
A token holds items read from Istream.
A class for handling words, derived from string.
int main(int argc, char *argv[])
scalar degToRad(const scalar deg)
Convert degrees to radians.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Tensor< scalar > tensor
Tensor of scalars.
Ostream & endl(Ostream &os)
Add newline and flush stream.
dimensionedScalar sin(const dimensionedScalar &ds)
Vector< scalar > vector
A scalar version of the templated Vector.
dimensioned< Type > cmptMultiply(const dimensioned< Type > &, const dimensioned< Type > &)
dimensionedScalar cos(const dimensionedScalar &ds)
Foam::argList args(argc, argv)