Go to the documentation of this file.
22 cout <<
"ERROR: RectangularCartesianMFGrid: unexpected orientation: x: " << localXDir <<
" y: " << localYDir
27 inFile >> n1 >> n2 >> n3;
28 double xref, yref, zref;
29 inFile >> xref >> yref >> zref;
30 double stepx, stepy, stepz;
31 inFile >> stepx >> stepy >> stepz;
33 vector<BVector> fieldValues;
36 fieldValues.reserve(
nLines);
37 for (
int iLine = 0; iLine <
nLines; ++iLine) {
38 inFile >> Bx >> By >> Bz;
39 fieldValues.push_back(
BVector(Bx, By, Bz));
44 if (lastEntry !=
"complete") {
45 cout <<
"ERROR during file reading: file is not complete" << endl;
51 Grid1D gridX(lrefp.x(), lrefp.x() + stepx * (n1 - 1), n1);
52 Grid1D gridY(lrefp.y(), lrefp.y() + stepy * (n2 - 1), n2);
53 Grid1D gridZ(lrefp.z(), lrefp.z() + stepz * (n3 - 1), n3);
62 cout << endl <<
"Dump of RectangularCartesianMFGrid" << endl;
78 cout <<
"Dumping " <<
grid_.
data().size() <<
" field values " << endl;
GloballyPositioned< float >::LocalVector LocalVector
RectangularCartesianMFGrid(binary_ifstream &istr, const GloballyPositioned< float > &vol)
void dump() const override
const GloballyPositioned< float > & frame() const
Local reference frame.
GloballyPositioned< float >::LocalPoint LocalPoint
const Container & data() const
LocalVector uncheckedValueInTesla(const LocalPoint &p) const override
Interpolated field value at given point; does not check for exceptions.
const Grid1D & grida() const
LocalPoint fromGridFrame(double a, double b, double c) const override
find grid coordinates for point. For debugging and validation only.
void toGridFrame(const LocalPoint &p, double &a, double &b, double &c) const override
find grid coordinates for point. For debugging and validation only.
GloballyPositioned< float >::GlobalVector GlobalVector
LocalPoint toLocal(const GlobalPoint &gp) const
ReturnType interpolate(Scalar a, Scalar b, Scalar c)
const Grid1D & gridb() const
const Grid1D & gridc() const
GloballyPositioned< float >::GlobalPoint GlobalPoint