FLinearMobilityProduct Class Reference

#include <flinearmobilityproduct.h>

Inheritance diagram for FLinearMobilityProduct:
Inheritance graph
[legend]
Collaboration diagram for FLinearMobilityProduct:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 FLinearMobilityProduct (double vW, double vO, double srw, double sro)
virtual double operator() (double x, unsigned cmp=0) const
virtual ~FLinearMobilityProduct ()

Private Attributes

double _vo
double _vw
double _MaxSw
double _Srw
double _c1
double _c2

Detailed Description

Definition at line 8 of file flinearmobilityproduct.h.


Constructor & Destructor Documentation

FLinearMobilityProduct::FLinearMobilityProduct ( double  vW,
double  vO,
double  srw,
double  sro 
)

Definition at line 7 of file flinearmobilityproduct.cpp.

00008   :Function1D(1)
00009 {
00010 
00011   _vw = vW;
00012   _vo = vO;
00013   _MaxSw=1.-sro;
00014   _Srw=srw;
00015   _c1=_MaxSw*_MaxSw*_vo;
00016   _c2=(1.0-_Srw)*(1.0-_Srw)*_vw;
00017   
00018 }

FLinearMobilityProduct::~FLinearMobilityProduct (  )  [virtual]

Definition at line 36 of file flinearmobilityproduct.cpp.

00037 {
00038  
00039 }


Member Function Documentation

double FLinearMobilityProduct::operator() ( double  x,
unsigned  cmp = 0 
) const [virtual]

Implements Function1D.

Definition at line 21 of file flinearmobilityproduct.cpp.

00022 {
00023   assert(cmp==0);
00024   if (x >= _MaxSw)
00025     x=_MaxSw;
00026   else if (x < _Srw)
00027     x=_Srw;
00028   
00029   register double krw = x-_Srw;
00030   register double kro = _MaxSw-x;
00031   return (krw/_c2)*(kro/_c1)/(krw/_c2 + kro/_c1);
00032 }


Member Data Documentation

double FLinearMobilityProduct::_c1 [private]

Definition at line 14 of file flinearmobilityproduct.h.

double FLinearMobilityProduct::_c2 [private]

Definition at line 15 of file flinearmobilityproduct.h.

Definition at line 12 of file flinearmobilityproduct.h.

double FLinearMobilityProduct::_Srw [private]

Definition at line 13 of file flinearmobilityproduct.h.

double FLinearMobilityProduct::_vo [private]

Definition at line 11 of file flinearmobilityproduct.h.

double FLinearMobilityProduct::_vw [private]

Definition at line 11 of file flinearmobilityproduct.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Generated on Sun Apr 8 23:13:08 2012 for CO2INJECTION by  doxygen 1.6.3