20 #ifndef GEOS_PHYSICSSOLVERS_FLUIDFLOW_SINGLEPHASE_MOBILITYKERNEL_HPP
21 #define GEOS_PHYSICSSOLVERS_FLUIDFLOW_SINGLEPHASE_MOBILITYKERNEL_HPP
24 #include "common/GEOS_RAJA_Interface.hpp"
25 #include "constitutive/fluid/singlefluid/SingleFluidLayouts.hpp"
30 namespace singlePhaseBaseKernels
42 compute(
real64 const & dens,
53 compute_derivative(
real64 const & mobility,
59 dMobility = dDensity/viscosity - mobility/viscosity*dViscosity;
63 template<
typename POLICY,
integer NUMDOF >
64 static void compute_value_and_derivatives(
localIndex const size,
74 compute( density[a][0], viscosity[a][0], mobility[a] );
75 for(
int i=0; i<NUMDOF; i++ )
77 compute_derivative( mobility[a], dDensity[a][0][i], viscosity[a][0], dViscosity[a][0][i], dMobility[a][i] );
84 template<
typename POLICY >
#define GEOS_HOST_DEVICE
Marks a host-device function.
ArrayView< T, 1 > arrayView1d
Alias for 1D array view.
double real64
64-bit floating point type.
GEOS_LOCALINDEX_TYPE localIndex
Local index type (for indexing objects within an MPI partition).
ArrayView< T, 2, USD > arrayView2d
Alias for 2D array view.
ArrayView< T, 3, USD > arrayView3d
Alias for 3D array view.