22 cout <<
"ERROR: RectangularCartesianMFGrid: unexpected orientation: x: " << localXDir <<
" y: " << localYDir
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) {
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;
RectangularCartesianMFGrid(binary_ifstream &istr, const GloballyPositioned< float > &vol)
const Container & data() const
const Grid1D & grida() const
GloballyPositioned< float >::GlobalVector GlobalVector
GloballyPositioned< float >::LocalPoint LocalPoint
ReturnType interpolate(Scalar a, Scalar b, Scalar c)
LocalPoint toLocal(const GlobalPoint &gp) const
void toGridFrame(const LocalPoint &p, double &a, double &b, double &c) const override
find grid coordinates for point. For debugging and validation only.
void dump() const override
const GloballyPositioned< float > & frame() const
Local reference frame.
GloballyPositioned< float >::GlobalPoint GlobalPoint
const Grid1D & gridb() const
LocalPoint fromGridFrame(double a, double b, double c) const override
find grid coordinates for point. For debugging and validation only.
const Grid1D & gridc() const
GloballyPositioned< float >::LocalVector LocalVector
LocalVector uncheckedValueInTesla(const LocalPoint &p) const override
Interpolated field value at given point; does not check for exceptions.