57 if (hr[0] ==
getHr()[0] &&
86 for (x = 0; x <
nr_m[0]; ++x) {
87 for (y = 0; y < nr_m[1]; ++y) {
111 for (x = localId[0].first(); x <= localId[0].last(); x++) {
125 for (y = localId[0].first(); y < localId[1].last(); y++) {
141 double &scaleFactor)
const
170 value.
center += 1.0 / ((dx - cx) * de);
173 value.
center += 1.0 / (de * de);
174 value.
east = -1.0 / (de * de);
182 value.
center += 1.0 / (dw * dw);
183 value.
west = -1.0 / (dw * dw);
188 value.
center += 1.0 / ((dy - cy) * dn);
191 value.
center += 1.0 / (dn * dn);
192 value.
north = -1.0 / (dn * dn);
200 value.
center += 1.0 / (ds * ds);
201 value.
south = -1.0 / (ds * ds);
213 double &scaleFactor)
const
217 double cx = (x - (
nr_m[0] - 1) / 2.0) *
hr_m[0];
218 double cy = (y - (
nr_m[1] - 1) / 2.0) *
hr_m[1];
248 value.
center -= 2.0 * (s - 1.0) / (s * de);
250 value.
west += (s - 1.0) / ((s + 1.0) * de);
252 value.
center += 1.0 / (de * de);
253 value.
east = -1.0 / (de * de);
259 value.
center -= 2.0 * (s - 1.0) / (s * de);
261 value.
east += (s - 1.0) / ((s + 1.0) * de);
263 value.
center += 1.0 / (dw * dw);
264 value.
west = -1.0 / (dw * dw);
270 value.
center -= 2.0 * (s - 1.0) / (s * dn);
272 value.
south += (s - 1.0) / ((s + 1.0) * dn);
274 value.
center += 1.0 / (dn * dn);
275 value.
north = -1.0 / (dn * dn);
281 value.
center -= 2.0 * (s - 1.0) / (s * dn);
283 value.
north += (s - 1.0) / ((s + 1.0) * dn);
285 value.
center += 1.0 / (ds * ds);
286 value.
south = -1.0 / (ds * ds);
Tps< T > sqrt(const Tps< T > &x)
Square root.
double getYRangeMax() const
double getXRangeMax() const
and that you know you can do these things To protect your we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights These restrictions translate to certain responsibilities for you if you distribute copies of the or if you modify it For if you distribute copies of such a whether gratis or for a you must give the recipients all the rights that you have You must make sure that receive or can get the source code And you must show them these terms so they know their rights We protect your rights with two distribute and or modify the software for each author s protection and we want to make certain that everyone understands that there is no warranty for this free software If the software is modified by someone else and passed we want its recipients to know that what they have is not the so that any problems introduced by others will not reflect on the original authors reputations any free program is threatened constantly by software patents We wish to avoid the danger that redistributors of a free program will individually obtain patent in effect making the program proprietary To prevent we have made it clear that any patent must be licensed for everyone s free use or not licensed at all The precise terms and conditions for distribution and modification follow GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR DISTRIBUTION AND MODIFICATION This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License The refers to any such program or and a work based on the Program means either the Program or any derivative work under copyright a work containing the Program or a portion of it
PETE_TUTree< FnAbs, typename T::PETE_Expr_t > abs(const PETE_Expr< T > &l)
void setRangeMax(const Vector_t &max)
IntVector_t nr_m
number of mesh points in each direction
void compute(Vector_t hr, NDIndex< 3 > localId) override
calculates intersection
std::map< int, int > idxMap_m
mapping (x,y,z) -> idx
void robinBoundaryStencil(int z, double &F, double &B, double &C) const
function to handle the open boundary condition in longitudinal direction
EllipticDomain(BoundaryGeometry *bgeom, IntVector_t nr, Vector_t hr, std::string interpl)
T::PETE_Expr_t::PETE_Return_t min(const PETE_Expr< T > &expr, NDIndex< D > &loc)
T::PETE_Expr_t::PETE_Return_t max(const PETE_Expr< T > &expr, NDIndex< D > &loc)
int interpolationMethod_m
interpolation type
double getYRangeMin() const
int toCoordIdx(int x, int y) const
conversion from (x,y) to index in xy plane
double getXRangeMin() const
Vector_t hr_m
mesh-spacings in each direction
bool isInside(int x, int y, int z) const override
queries if a given (x,y,z) coordinate lies inside the domain
void quadraticInterpolation(int x, int y, int z, StencilValue_t &value, double &scaleFactor) const override
EllipticPointList_t intersectXDir_m
all intersection points with grid lines in X direction
void linearInterpolation(int x, int y, int z, StencilValue_t &value, double &scaleFactor) const override
different interpolation methods for boundary points
std::map< int, int > coordMap_m
mapping idx -> (x,y,z)
void setRangeMin(const Vector_t &min)
EllipticPointList_t intersectYDir_m
all intersection points with grid lines in Y direction
bool hasGeometryChanged_m
flag indicating if geometry has changed for the current time-step
void setMinMaxZ(double minz, double maxz)