#include <meshholeinfo.h>
Public Member Functions | |
MeshHoleInfo (double pwx, double pwz, double pwy1, double pwy2) | |
bool | isCellInHole (Point3D &p1, Point3D &p2) const |
bool | isPointInViscinity (const Point3D &p1, const Point3D &rad) const |
double | getNormalVelocityFromInjectionRate (double inj, const Point3D &DX) |
Public Attributes | |
double | wx |
double | wz |
double | wy1 |
double | wy2 |
Definition at line 10 of file meshholeinfo.h.
MeshHoleInfo::MeshHoleInfo | ( | double | pwx, | |
double | pwz, | |||
double | pwy1, | |||
double | pwy2 | |||
) |
double MeshHoleInfo::getNormalVelocityFromInjectionRate | ( | double | inj, | |
const Point3D & | DX | |||
) |
Definition at line 12 of file meshholeinfo.cpp.
00013 { 00014 assert(p1[X] < p2[X]); 00015 assert(p1[Y] < p2[Y]); 00016 assert(p1[Z] < p2[Z]); 00017 /* if ((wx > p1[X]) && (wx < p2[X]) && (wz > p1[Z]) && (wz < p2[Z])) 00018 { 00019 printf("XZ matches"); 00020 if ( (p1[Y] > wy2) || (p2[Y] < wy2)) 00021 printf("but Y dont"); 00022 else 00023 printf("and Y too"); 00024 }*/ 00025 00026 return ( (wx > p1[X]) && (wx <= p2[X]) && 00027 (wz > p1[Z]) && (wz <= p2[Z]) && 00028 !( (p1[Y] > wy2) || (p2[Y] < wy2))); 00029 00030 00031 }
Check if a point is in the viscinity of the hole
p | The point to be checked | |
rad | This is the radius in each dimension where the area around the well is considered a viscinity. Actually the well is represented geometrically by a line. So the viscinity of the well is a parallelogram with center given by this line and radius in each dimension given by this parameter. |
Definition at line 42 of file meshholeinfo.cpp.
double MeshHoleInfo::wx |
Definition at line 17 of file meshholeinfo.h.
double MeshHoleInfo::wy1 |
Definition at line 17 of file meshholeinfo.h.
double MeshHoleInfo::wy2 |
Definition at line 17 of file meshholeinfo.h.
double MeshHoleInfo::wz |
Definition at line 17 of file meshholeinfo.h.