44 int main(
int argc,
char *argv[])
58 std::ifstream plot3dFile(
args.
args()[1].c_str());
61 std::getline(plot3dFile, line);
62 std::getline(plot3dFile, line);
74 Istring >> punctuation;
80 Info<<
"Number of vertices in i direction = " << iPoints << endl
81 <<
"Number of vertices in j direction = " << jPoints <<
endl;
84 label nPointsij = (iPoints - 1)*(jPoints - 1);
88 for (
direction comp = 0; comp < 2; comp++)
92 for (
label j = 0; j < jPoints; j++)
94 for (
label i = 0; i < iPoints; i++)
119 fileName pointsFile(runTime.path()/runTime.constant()/
"points.tmp");
133 pointsWedge[i] = (rotateZ &
points[i]);
141 Info<<
"Writing points to: " <<
nl 142 <<
" " << pointsFile <<
endl;
143 pFile << pointsWedge;
#define forAll(list, i)
Loop across all elements in list.
A class for handling file names.
Unit conversion functions.
A token holds items read from Istream.
Ostream & endl(Ostream &os)
Add newline and flush stream.
static void noParallel()
Remove the parallel options.
static SLList< string > validArgs
A list of valid (mandatory) arguments.
Vector< scalar > vector
A scalar version of the templated Vector.
void exit(const int errNo=1)
Exit : can be called for any error to exit program.
scalar degToRad(const scalar deg)
Conversion from degrees to radians.
dimensionedScalar cos(const dimensionedScalar &ds)
A class for handling words, derived from string.
Extract command arguments and options from the supplied argc and argv parameters. ...
dimensioned< Type > cmptMultiply(const dimensioned< Type > &, const dimensioned< Type > &)
dimensionedScalar sin(const dimensionedScalar &ds)
Input from memory buffer stream.
bool check(bool checkArgs=true, bool checkOpts=true) const
Check argument list.
const doubleScalar e
Elementary charge.
Foam::argList args(argc, argv)
Tensor< scalar > tensor
Tensor of scalars.
const stringList & args() const
Return arguments.