Go to the documentation of this file.
49 int main(
int argc,
char *argv[])
53 "Reads in a datToFoam mesh file and outputs a points file.\n"
54 "Used in conjunction with blockMesh."
72 std::getline(plot3dFile,
line);
73 std::getline(plot3dFile,
line);
79 label iPoints, jPoints;
84 Istring >> punctuation;
90 Info<<
"Number of vertices in i direction = " << iPoints <<
nl
91 <<
"Number of vertices in j direction = " << jPoints <<
endl;
94 const label nPointsij = (iPoints - 1)*(jPoints - 1);
98 for (
direction comp = 0; comp < 2; ++comp)
102 for (label j = 0; j < jPoints; ++j)
104 for (label i = 0; i < iPoints; ++i)
139 pointsWedge[i] = (rotateZ &
points[i]);
140 pointsWedge[i + nPointsij] =
158 if (!
exists(iopoints.path()))
160 mkDir(iopoints.path());
165 Info<<
"Writing points to: " <<
nl
168 iopoints.writeHeader(
os, vectorIOField::typeName);
A templated (3 x 3) tensor of objects of <T> derived from MatrixSpace.
Defines the attributes of an object for which implicit objectRegistry management is supported,...
Creates a single block of cells from point coordinates, numbers of cells in each direction and an exp...
bool exists(const fileName &name, const bool checkGzip=true, const bool followLink=true)
A class for handling words, derived from Foam::string.
A class for handling file names.
dimensioned< Type > cmptMultiply(const dimensioned< Type > &, const dimensioned< Type > &)
virtual const fileName & name() const
static constexpr const zero Zero
static Ostream & writeEndDivider(Ostream &os)
dimensionedScalar sin(const dimensionedScalar &ds)
static void addNote(const string ¬e)
Unit conversion functions.
Extract command arguments and options from the supplied argc and argv parameters.
Ostream & endl(Ostream &os)
A token holds an item read from Istream.
T get(const label index) const
static void addArgument(const string &argName, const string &usage="")
IOstreamOption writeStreamOption() const
Generic templated field type.
OBJstream os(runTime.globalPath()/outputName)
void exit(const int errNo=1)
Vector< scalar > vector
A scalar version of the templated Vector.
constexpr scalar degToRad(const scalar deg) noexcept
Output to file stream, using an OSstream.
const dimensionedScalar e
bool check(bool checkArgs=argList::argsMandatory(), bool checkOpts=true) const
const word & constant() const
Foam::argList args(argc, argv)
bool mkDir(const fileName &pathName, mode_t mode=0777)
dimensionedScalar cos(const dimensionedScalar &ds)