22 cout <<
"ERROR: RectangularCylindricalMFGrid: 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;
52 cout <<
"Grid reference point in grid system: " << xref <<
"," << yref <<
"," << zref << endl;
53 cout <<
"Grid reference point in global x,y,z: " << grefp << endl;
54 cout <<
"Grid reference point in local x,y,z: " << lrefp << endl;
55 cout <<
"steps " << stepx <<
"," << stepy <<
"," << stepz << endl;
58 Grid1D gridX(lrefp.perp(), lrefp.perp() + stepx * (n1 - 1), n1);
60 Grid1D gridY(yref, yref + stepy * (n2 - 1), n2);
61 Grid1D gridZ(lrefp.z(), lrefp.z() + stepz * (n3 - 1), n3);
67 cout << endl <<
"Dump of RectangularCylindricalMFGrid" << endl;
77 cout <<
"Dumping " <<
grid_.
data().size() <<
" field values " << endl;
82 const float minimalSignificantR = 1
e-6;
84 if (
R < minimalSignificantR) {
const Container & data() const
const Grid1D & grida() const
void dump() const override
LocalPoint fromGridFrame(double a, double b, double c) const override
find grid coordinates for point. For debugging and validation only.
GloballyPositioned< float >::GlobalVector GlobalVector
GloballyPositioned< float >::LocalPoint LocalPoint
int index(Scalar a, Scalar &f) const
ReturnType interpolate(Scalar a, Scalar b, Scalar c)
LocalPoint toLocal(const GlobalPoint &gp) const
LocalVector uncheckedValueInTesla(const LocalPoint &p) const override
Interpolated field value at given point; does not check for exceptions.
const GloballyPositioned< float > & frame() const
Local reference frame.
GloballyPositioned< float >::GlobalPoint GlobalPoint
void toGridFrame(const LocalPoint &p, double &a, double &b, double &c) const override
find grid coordinates for point. For debugging and validation only.
const Grid1D & gridb() const
const Grid1D & gridc() const
GloballyPositioned< float >::LocalVector LocalVector
RectangularCylindricalMFGrid(binary_ifstream &istr, const GloballyPositioned< float > &vol)