92 double HelpPoint00[5];
93 double HelpPoint10[5];
94 double HelpPoint01[5];
95 double HelpPoint11[5];
100 double HelpPoint0[4];
101 double HelpPoint1[4];
106 double DeltaSC0X000overDeltaX100X000 = 0.;
107 if (DeltaX100X000 != 0.)
108 DeltaSC0X000overDeltaX100X000 = (
SC[0] -
CellPoint000[0]) / DeltaX100X000;
112 double DeltaSC0X010overDeltaX110X010 = 0.;
113 if (DeltaX110X010 != 0.)
114 DeltaSC0X010overDeltaX110X010 = (
SC[0] -
CellPoint010[0]) / DeltaX110X010;
118 double DeltaSC0X001overDeltaX101X001 = 0.;
119 if (DeltaX101X001 != 0.)
120 DeltaSC0X001overDeltaX101X001 = (
SC[0] -
CellPoint001[0]) / DeltaX101X001;
124 double DeltaSC0X011overDeltaX111X011 = 0.;
125 if (DeltaX111X011 != 0.)
126 DeltaSC0X011overDeltaX111X011 = (
SC[0] -
CellPoint011[0]) / DeltaX111X011;
128 for (
int i = 0;
i < 5; ++
i) {
146 double DeltaX10X00 = HelpPoint10[0] - HelpPoint00[0];
147 double DeltaSC1X00overDeltaX10X00 = 0.;
148 if (DeltaX10X00 != 0.)
149 DeltaSC1X00overDeltaX10X00 = (
SC[1] - HelpPoint00[0]) / DeltaX10X00;
151 double DeltaX11X01 = HelpPoint11[0] - HelpPoint01[0];
152 double DeltaSC1X01overDeltaX11X01 = 0.;
153 if (DeltaX11X01 != 0.)
154 DeltaSC1X01overDeltaX11X01 = (
SC[1] - HelpPoint01[0]) / DeltaX11X01;
156 for (
int i = 0;
i < 4; ++
i) {
160 HelpPoint0[
i] = HelpPoint00[ip] + DeltaSC1X00overDeltaX10X00 * (HelpPoint10[ip] - HelpPoint00[ip]);
163 HelpPoint1[
i] = HelpPoint01[ip] + DeltaSC1X01overDeltaX11X01 * (HelpPoint11[ip] - HelpPoint01[ip]);
168 double DeltaX1X0 = HelpPoint1[0] - HelpPoint0[0];
169 double DeltaSC2X0overDeltaX1X0 = 0.;
171 DeltaSC2X0overDeltaX1X0 = (
SC[2] - HelpPoint0[0]) / DeltaX1X0;
173 for (
int i = 0;
i < 3; ++
i) {
177 VF[
i] = HelpPoint0[ip] + DeltaSC2X0overDeltaX1X0 * (HelpPoint1[ip] - HelpPoint0[ip]);
void defineCellPoint100(double X1, double X2, double X3, double F1, double F2, double F3)
void defineCellPoint110(double X1, double X2, double X3, double F1, double F2, double F3)
void defineCellPoint101(double X1, double X2, double X3, double F1, double F2, double F3)
void putSCoordGetVField(double X1, double X2, double X3, double &F1, double &F2, double &F3)
receive the interpolated field (out) at any point in space (in)
void defineCellPoint010(double X1, double X2, double X3, double F1, double F2, double F3)
void defineCellPoint111(double X1, double X2, double X3, double F1, double F2, double F3)
void defineCellPoint000(double X1, double X2, double X3, double F1, double F2, double F3)
provide the interpolation algorithm with 8 points, where the field is known (in)
void defineCellPoint001(double X1, double X2, double X3, double F1, double F2, double F3)
void defineCellPoint011(double X1, double X2, double X3, double F1, double F2, double F3)