Skip to content

Commit

Permalink
removed using namespace fluxKernelsHelper from headers
Browse files Browse the repository at this point in the history
  • Loading branch information
rrsettgast committed Aug 10, 2024
1 parent dc9aed3 commit fb9e629
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,6 @@ ENUM_STRINGS( StabilizationType,
"Local" );
}

//using namespace stabilization;
;


template< typename FLOW_SOLVER, typename MECHANICS_SOLVER = SolidMechanicsLagrangianFEM >
class PoromechanicsSolver : public CoupledSolver< FLOW_SOLVER, MECHANICS_SOLVER >
Expand Down Expand Up @@ -128,12 +125,12 @@ class PoromechanicsSolver : public CoupledSolver< FLOW_SOLVER, MECHANICS_SOLVER
if( dynamic_cast< SurfaceElementSubRegion * >( &subRegion ) )
{
subRegion.registerWrapper< string >( viewKeyStruct::hydraulicApertureRelationNameString() ).
setPlotLevel( PlotLevel::NOPLOT ).
setRestartFlags( RestartFlags::NO_WRITE ).
setPlotLevel( dataRepository::PlotLevel::NOPLOT ).
setRestartFlags( dataRepository::RestartFlags::NO_WRITE ).
setSizedFromParent( 0 );

string & hydraulicApertureModelName = subRegion.getReference< string >( viewKeyStruct::hydraulicApertureRelationNameString() );
hydraulicApertureModelName = SolverBase::getConstitutiveName< HydraulicApertureBase >( subRegion );
hydraulicApertureModelName = SolverBase::getConstitutiveName< constitutive::HydraulicApertureBase >( subRegion );
GEOS_ERROR_IF( hydraulicApertureModelName.empty(), GEOS_FMT( "{}: HydraulicApertureBase model not found on subregion {}",
this->getDataContext(), subRegion.getDataContext() ) );
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,7 @@ namespace geos

namespace singlePhasePoromechanicsConformingFracturesKernels
{

using namespace fluxKernelsHelper;
;


template< integer NUM_EQN, integer NUM_DOF >
class ConnectorBasedAssemblyKernel : public singlePhaseFVMKernels::FaceBasedAssemblyKernel< NUM_EQN, NUM_DOF, SurfaceElementStencilWrapper >
{
Expand Down Expand Up @@ -193,7 +190,7 @@ class ConnectorBasedAssemblyKernel : public singlePhaseFVMKernels::FaceBasedAsse
localIndex const subRegionIndex[2] = {m_sesri[iconn][k[0]], m_sesri[iconn][k[1]]};
localIndex const elementIndex[2] = {m_sei[iconn][k[0]], m_sei[iconn][k[1]]};

computeSinglePhaseFlux( regionIndex, subRegionIndex, elementIndex,
fluxKernelsHelper::computeSinglePhaseFlux( regionIndex, subRegionIndex, elementIndex,
trans,
dTrans,
m_pres,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,6 @@ namespace geos
namespace singlePhasePoromechanicsEmbeddedFracturesKernels
{

using namespace fluxKernelsHelper;
;

template< integer NUM_EQN, integer NUM_DOF >
class ConnectorBasedAssemblyKernel : public singlePhaseFVMKernels::FaceBasedAssemblyKernel< NUM_EQN, NUM_DOF, SurfaceElementStencilWrapper >
{
Expand Down Expand Up @@ -183,7 +180,7 @@ class ConnectorBasedAssemblyKernel : public singlePhaseFVMKernels::FaceBasedAsse
real64 mobility = 0.0;
real64 potGrad = 0.0;

computeSinglePhaseFlux( regionIndex, subRegionIndex, elementIndex,
fluxKernelsHelper::computeSinglePhaseFlux( regionIndex, subRegionIndex, elementIndex,
trans,
dTrans,
m_pres,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@ namespace geos
namespace thermalSinglePhasePoromechanicsConformingFracturesKernels
{

using namespace fluxKernelsHelper;
;

template< integer NUM_EQN, integer NUM_DOF >
class ConnectorBasedAssemblyKernel : public singlePhasePoromechanicsConformingFracturesKernels::ConnectorBasedAssemblyKernel< NUM_EQN, NUM_DOF >
{
Expand Down Expand Up @@ -208,7 +205,7 @@ class ConnectorBasedAssemblyKernel : public singlePhasePoromechanicsConformingFr
real64 trans[2] = {stack.transmissibility[0][0], stack.transmissibility[0][1]};
real64 dMassFlux_dT[2]{};

computeEnthalpyFlux( seri, sesri, sei,
fluxKernelsHelper::computeEnthalpyFlux( seri, sesri, sei,
trans,
m_enthalpy,
m_dEnthalpy_dPres,
Expand Down Expand Up @@ -263,7 +260,7 @@ class ConnectorBasedAssemblyKernel : public singlePhasePoromechanicsConformingFr
localIndex const sei[2] = {m_sei( iconn, k[0] ), m_sei( iconn, k[1] )};

// Step 2: compute temperature difference at the interface
computeConductiveFlux( seri, sesri, sei, m_temp, thermalTrans, stack.energyFlux, stack.dEnergyFlux_dT );
fluxKernelsHelper::computeConductiveFlux( seri, sesri, sei, m_temp, thermalTrans, stack.energyFlux, stack.dEnergyFlux_dT );

// add energyFlux and its derivatives to localFlux and localFluxJacobian
stack.localFlux[k[0]*numEqn + numEqn - 1] += m_dt * stack.energyFlux;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@ namespace geos
namespace thermalSinglePhasePoromechanicsEmbeddedFracturesKernels
{

using namespace fluxKernelsHelper;
;

template< integer NUM_EQN, integer NUM_DOF >
class ConnectorBasedAssemblyKernel : public singlePhasePoromechanicsEmbeddedFracturesKernels::ConnectorBasedAssemblyKernel< NUM_EQN, NUM_DOF >
{
Expand Down Expand Up @@ -207,7 +204,7 @@ class ConnectorBasedAssemblyKernel : public singlePhasePoromechanicsEmbeddedFrac
real64 trans[2] = {stack.transmissibility[0][0], stack.transmissibility[0][1]};
real64 dMassFlux_dT[2]{};

computeEnthalpyFlux( seri, sesri, sei,
fluxKernelsHelper::computeEnthalpyFlux( seri, sesri, sei,
trans,
m_enthalpy,
m_dEnthalpy_dPres,
Expand Down Expand Up @@ -274,7 +271,7 @@ class ConnectorBasedAssemblyKernel : public singlePhasePoromechanicsEmbeddedFrac
localIndex const sei[2] = {m_sei( iconn, k[0] ), m_sei( iconn, k[1] )};

// Step 2: compute temperature difference at the interface
computeConductiveFlux( seri, sesri, sei, m_temp, thermalTrans, stack.energyFlux, stack.dEnergyFlux_dT );
fluxKernelsHelper::computeConductiveFlux( seri, sesri, sei, m_temp, thermalTrans, stack.energyFlux, stack.dEnergyFlux_dT );

// add energyFlux and its derivatives to localFlux and localFluxJacobian
stack.localFlux[k[0]*numEqn + numEqn - 1] += m_dt * stack.energyFlux;
Expand Down

0 comments on commit fb9e629

Please sign in to comment.