mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
move assignment of linStress into MechContainer
This commit is contained in:
parent
779a225c9d
commit
6809268d12
@ -117,6 +117,19 @@ assignDisplacement(const unsigned globalDofIdx,
|
|||||||
this->disp_[2][globalDofIdx] = disp[2];
|
this->disp_[2][globalDofIdx] = disp[2];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
template<class Scalar>
|
||||||
|
void MechContainer<Scalar>::
|
||||||
|
assignLinStress(const unsigned globalDofIdx,
|
||||||
|
const Dune::FieldVector<Scalar,6>& linStress)
|
||||||
|
{
|
||||||
|
this->linstressXX_[globalDofIdx] = linStress[0];
|
||||||
|
this->linstressYY_[globalDofIdx] = linStress[1];
|
||||||
|
this->linstressZZ_[globalDofIdx] = linStress[2];
|
||||||
|
this->linstressYZ_[globalDofIdx] = linStress[3];
|
||||||
|
this->linstressXZ_[globalDofIdx] = linStress[4];
|
||||||
|
this->linstressXY_[globalDofIdx] = linStress[5];
|
||||||
|
}
|
||||||
|
|
||||||
template<class Scalar>
|
template<class Scalar>
|
||||||
void MechContainer<Scalar>::
|
void MechContainer<Scalar>::
|
||||||
assignPotentialForces(const unsigned globalDofIdx,
|
assignPotentialForces(const unsigned globalDofIdx,
|
||||||
|
@ -60,6 +60,9 @@ public:
|
|||||||
const Scalar pressForce,
|
const Scalar pressForce,
|
||||||
const Scalar tempForce);
|
const Scalar tempForce);
|
||||||
|
|
||||||
|
void assignLinStress(const unsigned globalDofIdx,
|
||||||
|
const Dune::FieldVector<Scalar,6>& linStress);
|
||||||
|
|
||||||
void assignStrain(const unsigned globalDofIdx,
|
void assignStrain(const unsigned globalDofIdx,
|
||||||
const Dune::FieldVector<Scalar,6>& strain);
|
const Dune::FieldVector<Scalar,6>& strain);
|
||||||
|
|
||||||
|
@ -215,6 +215,9 @@ public:
|
|||||||
this->mech_.assignDisplacement(globalDofIdx,
|
this->mech_.assignDisplacement(globalDofIdx,
|
||||||
model.disp(globalDofIdx, /*include_fracture*/true));
|
model.disp(globalDofIdx, /*include_fracture*/true));
|
||||||
|
|
||||||
|
this->mech_.assignLinStress(globalDofIdx,
|
||||||
|
model.linstress(globalDofIdx));
|
||||||
|
|
||||||
this->mech_.assignPotentialForces(globalDofIdx,
|
this->mech_.assignPotentialForces(globalDofIdx,
|
||||||
model.mechPotentialForce(globalDofIdx),
|
model.mechPotentialForce(globalDofIdx),
|
||||||
model.mechPotentialPressForce(globalDofIdx),
|
model.mechPotentialPressForce(globalDofIdx),
|
||||||
@ -227,14 +230,6 @@ public:
|
|||||||
this->mech_.assignStress(globalDofIdx,
|
this->mech_.assignStress(globalDofIdx,
|
||||||
model.stress(globalDofIdx, /*include_fracture*/true));;
|
model.stress(globalDofIdx, /*include_fracture*/true));;
|
||||||
|
|
||||||
const auto linstress = model.linstress(globalDofIdx);
|
|
||||||
this->mech_.linstressXX_[globalDofIdx] = linstress[Voigt::XX];
|
|
||||||
this->mech_.linstressYY_[globalDofIdx] = linstress[Voigt::YY];
|
|
||||||
this->mech_.linstressZZ_[globalDofIdx] = linstress[Voigt::ZZ];
|
|
||||||
this->mech_.linstressXY_[globalDofIdx] = linstress[Voigt::XY];
|
|
||||||
this->mech_.linstressXZ_[globalDofIdx] = linstress[Voigt::XZ];
|
|
||||||
this->mech_.linstressYZ_[globalDofIdx] = linstress[Voigt::YZ];
|
|
||||||
|
|
||||||
// is the tresagii stress which make rock fracture
|
// is the tresagii stress which make rock fracture
|
||||||
const auto fracstress = model.fractureStress(globalDofIdx);
|
const auto fracstress = model.fractureStress(globalDofIdx);
|
||||||
this->mech_.fracstressXX_[globalDofIdx] = fracstress[Voigt::XX];
|
this->mech_.fracstressXX_[globalDofIdx] = fracstress[Voigt::XX];
|
||||||
|
Loading…
Reference in New Issue
Block a user