Skip to content

Commit

Permalink
remove using namespace surfaceGenerationKernelsHelpers from header files
Browse files Browse the repository at this point in the history
  • Loading branch information
rrsettgast committed Aug 10, 2024
1 parent 5d234e1 commit fc274fc
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ namespace geos
namespace surfaceGenerationKernels
{

using namespace surfaceGenerationKernelsHelpers;

class NodalForceKernel
{

Expand Down Expand Up @@ -76,11 +74,11 @@ class NodalForceKernel
{
real64 const quadratureStress[6] = LVARRAY_TENSOROPS_INIT_LOCAL_6 ( m_stress[er][esr][m_solidMaterialFullIndex[er]][ei][q] );
real64 const dNdX[3] = LVARRAY_TENSOROPS_INIT_LOCAL_3 ( m_dNdX[er][esr][ei][q][targetNode] );
computeNodalForce( quadratureStress, dNdX, m_detJ[er][esr][ei][q], force );
surfaceGenerationKernelsHelpers::computeNodalForce( quadratureStress, dNdX, m_detJ[er][esr][ei][q], force );
}

//wu40: the nodal force need to be weighted by Young's modulus and possion's ratio.
scaleNodalForce( m_bulkModulus[er][esr][m_solidMaterialFullIndex[er]][ei], m_shearModulus[er][esr][m_solidMaterialFullIndex[er]][ei], force );
surfaceGenerationKernelsHelpers::scaleNodalForce( m_bulkModulus[er][esr][m_solidMaterialFullIndex[er]][ei], m_shearModulus[er][esr][m_solidMaterialFullIndex[er]][ei], force );
}

protected:
Expand Down Expand Up @@ -142,11 +140,11 @@ class PoroElasticNodalForceKernel : public NodalForceKernel
/// TODO: make it work for the thermal case as well
LvArray::tensorOps::symAddIdentity< 3 >( totalStress, -m_biotCoefficient[er][esr][m_porosityMaterialFullIndex[er]][ei] * m_pressure[er][esr][ei] );

computeNodalForce( totalStress, dNdX, m_detJ[er][esr][ei][q], force );
surfaceGenerationKernelsHelpers::computeNodalForce( totalStress, dNdX, m_detJ[er][esr][ei][q], force );
}

//wu40: the nodal force need to be weighted by Young's modulus and possion's ratio.
scaleNodalForce( m_bulkModulus[er][esr][m_solidMaterialFullIndex[er]][ei], m_shearModulus[er][esr][m_solidMaterialFullIndex[er]][ei], force );
surfaceGenerationKernelsHelpers::scaleNodalForce( m_bulkModulus[er][esr][m_solidMaterialFullIndex[er]][ei], m_shearModulus[er][esr][m_solidMaterialFullIndex[er]][ei], force );
}

private:
Expand Down

0 comments on commit fc274fc

Please sign in to comment.