26 cout <<
"ERROR: RectangularCartesianMFGrid: unexpected orientation: x: " 27 << localXDir <<
" y: " << localYDir << endl;
31 inFile >> n1 >> n2 >> n3;
32 double xref, yref, zref;
33 inFile >> xref >> yref >> zref;
34 double stepx, stepy, stepz;
35 inFile >> stepx >> stepy >> stepz;
37 vector<BVector> fieldValues;
39 int nLines = n1*n2*n3;
40 fieldValues.reserve(nLines);
41 for (
int iLine=0; iLine<nLines; ++iLine){
42 inFile >> Bx >> By >> Bz;
43 fieldValues.push_back(
BVector(Bx,By,Bz));
48 if (lastEntry !=
"complete"){
49 cout <<
"ERROR during file reading: file is not complete" << endl;
55 Grid1D gridX( lrefp.x(), lrefp.x() + stepx*(n1-1), n1);
56 Grid1D gridY( lrefp.y(), lrefp.y() + stepy*(n2-1), n2);
57 Grid1D gridZ( lrefp.z(), lrefp.z() + stepz*(n3-1), n3);
68 cout << endl <<
"Dump of RectangularCartesianMFGrid" << endl;
71 cout <<
"Number of points from Grid1D " 76 cout <<
"Reference Point from Grid1D " 81 cout <<
"Basic Distance from Grid1D " 85 cout <<
"Dumping " <<
grid_.
data().size() <<
" field values " << endl;
101 double&
a,
double&
b,
double&
c)
const
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.