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;
RectangularCartesianMFGrid(binary_ifstream &istr, const GloballyPositioned< float > &vol)
void toGridFrame(const LocalPoint &p, double &a, double &b, double &c) const override
find grid coordinates for point. For debugging and validation only.
LocalVector uncheckedValueInTesla(const LocalPoint &p) const override
Interpolated field value at given point; does not check for exceptions.
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
const Grid1D & gridc() const
const Container & data() const
GloballyPositioned< float >::GlobalPoint GlobalPoint
GloballyPositioned< float >::LocalVector LocalVector
const GloballyPositioned< float > & frame() const
Local reference frame.
void dump() const override
const Grid1D & gridb() const
LocalPoint fromGridFrame(double a, double b, double c) const override
find grid coordinates for point. For debugging and validation only.