#include <fpcfracture.h>
Public Member Functions | |
FPcFracture (double gamma, double theta) | |
virtual double | operator() (double x, unsigned cmp) const |
virtual | ~FPcFracture () |
Protected Attributes | |
double | _gamma |
double | _theta |
Implement the Pc function as described in the paper On the numerical simulation of waterflooding of heterogeneous pretroleum reservoirs
Definition at line 11 of file fpcfracture.h.
FPcFracture::FPcFracture | ( | double | gamma, | |
double | theta | |||
) |
Definition at line 5 of file fpcfracture.cpp.
virtual FPcFracture::~FPcFracture | ( | ) | [inline, virtual] |
Definition at line 22 of file fpcfracture.h.
double FPcFracture::operator() | ( | double | x, | |
unsigned | cmp | |||
) | const [virtual] |
Implements Function1D.
Definition at line 11 of file fpcfracture.cpp.
00012 { 00013 double sr=1e-8; 00014 assert(cmp==0); 00015 if (x>sr && x<=1.0) 00016 { 00017 return (1-x)*(_gamma/x-_gamma+_theta); 00018 } 00019 else if (x<=sr) 00020 { 00021 return (1-sr)*(_gamma/sr-_gamma+_theta); 00022 //return 1.0e+12; 00023 } 00024 else 00025 { 00026 return 1e-12; 00027 } 00028 }
double FPcFracture::_gamma [protected] |
Definition at line 15 of file fpcfracture.h.
double FPcFracture::_theta [protected] |
Definition at line 15 of file fpcfracture.h.