Skip to content

Commit

Permalink
Delete m_gradJ from FEMaterialPoint
Browse files Browse the repository at this point in the history
It is not needed.
  • Loading branch information
gateshian committed Dec 12, 2024
1 parent 8940f9c commit f9bade4
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 6 deletions.
1 change: 0 additions & 1 deletion FEBioFluid/FEBiphasicFSIDomain3D.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -990,7 +990,6 @@ void FEBiphasicFSIDomain3D::UpdateElementStress(int iel, const FETimeInfo& tp)

//calculate gradJ gradphif
bt.m_gradJ = Fi.transpose()*(GradJ*alphaf + GradJp*(1-alphaf));
ept.m_gradJ = bt.m_gradJ;

// FSI material point data
ft.m_w = el.Evaluate(w, n);
Expand Down
1 change: 0 additions & 1 deletion FEBioFluid/FEMultiphasicFSIDomain3D.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1596,7 +1596,6 @@ void FEMultiphasicFSIDomain3D::UpdateElementStress(int iel, const FETimeInfo& tp

//calculate gradJ gradphif
bt.m_gradJ = Fi.transpose()*(GradJ*alphaf + GradJp*(1-alphaf));
ept.m_gradJ = bt.m_gradJ;

// FSI material point data
ft.m_w = el.Evaluate(w, n);
Expand Down
6 changes: 3 additions & 3 deletions FEBioMech/FEElasticMaterialPoint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ FEElasticMaterialPoint::FEElasticMaterialPoint(FEMaterialPointData* mp) : FEMate
m_F.unit();
m_J = 1;
m_s.zero();
m_v = m_a = m_gradJ = vec3d(0, 0, 0);
m_v = m_a = vec3d(0, 0, 0);
m_buncoupled = false;
m_Wt = m_Wp = 0;
m_p = 0;
Expand All @@ -58,7 +58,7 @@ void FEElasticMaterialPoint::Init()

m_s.zero();

m_v = m_a = m_gradJ = vec3d(0, 0, 0);
m_v = m_a = vec3d(0, 0, 0);
m_L.zero();

m_Wt = m_Wp = 0;
Expand All @@ -73,7 +73,7 @@ void FEElasticMaterialPoint::Init()
void FEElasticMaterialPoint::Serialize(DumpStream& ar)
{
FEMaterialPointData::Serialize(ar);
ar & m_F & m_J & m_s & m_v & m_a & m_gradJ & m_L & m_Wt & m_Wp & m_p;
ar & m_F & m_J & m_s & m_v & m_a & m_L & m_Wt & m_Wp & m_p;
ar & m_buncoupled;
}

Expand Down
1 change: 0 additions & 1 deletion FEBioMech/FEElasticMaterialPoint.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ class FEBIOMECH_API FEElasticMaterialPoint : public FEMaterialPointData
// deformation data at intermediate time
mat3d m_F; //!< deformation gradient
double m_J; //!< determinant of F
vec3d m_gradJ; //!< gradient of J
vec3d m_v; //!< velocity
vec3d m_a; //!< acceleration
mat3d m_L; //!< spatial velocity gradient
Expand Down

0 comments on commit f9bade4

Please sign in to comment.