Skip to content

Commit

Permalink
Merge pull request #12799 from KratosMultiphysics/solving-restart-in-…
Browse files Browse the repository at this point in the history
…HCF-AITS

[CLApp] solving restart capabilities for the HCF CL and AITS
  • Loading branch information
AlejandroCornejo authored Oct 28, 2024
2 parents fee499c + 9b19c27 commit 98d2dbf
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ class KRATOS_API(CONSTITUTIVE_LAWS_APPLICATION) GenericSmallStrainHighCycleFatig

void save(Serializer &rSerializer) const override
{
KRATOS_SERIALIZE_SAVE_BASE_CLASS(rSerializer, ConstitutiveLaw)
KRATOS_SERIALIZE_SAVE_BASE_CLASS(rSerializer, BaseType)
rSerializer.save("FatigueReductionFactor", mFatigueReductionFactor);
rSerializer.save("PreviousStresses", mPreviousStresses);
rSerializer.save("MaxStress", mMaxStress);
Expand All @@ -476,7 +476,7 @@ class KRATOS_API(CONSTITUTIVE_LAWS_APPLICATION) GenericSmallStrainHighCycleFatig

void load(Serializer &rSerializer) override
{
KRATOS_SERIALIZE_LOAD_BASE_CLASS(rSerializer, ConstitutiveLaw)
KRATOS_SERIALIZE_LOAD_BASE_CLASS(rSerializer, BaseType)
rSerializer.load("FatigueReductionFactor", mFatigueReductionFactor);
rSerializer.load("PreviousStresses", mPreviousStresses);
rSerializer.load("MaxStress", mMaxStress);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,6 @@ class KRATOS_API(CONSTITUTIVE_LAWS_APPLICATION)AdvanceInTimeHighCycleFatigueProc
///@name Enum's
///@{

protected:


public:
static constexpr double tolerance = std::numeric_limits<double>::epsilon();
Expand Down Expand Up @@ -98,10 +96,26 @@ class KRATOS_API(CONSTITUTIVE_LAWS_APPLICATION)AdvanceInTimeHighCycleFatigueProc
*/
void TimeAndCyclesUpdate(const double Increment);

protected:
private:
// Member Variables
ModelPart& mrModelPart; // The model part to compute
Parameters mThisParameters;
ModelPart& mrModelPart; // The model part to compute
Parameters mThisParameters; // The project parameters

friend class Serializer;

void save(Serializer &rSerializer) const override
{
KRATOS_SERIALIZE_SAVE_BASE_CLASS(rSerializer, Process)
rSerializer.save("ModelPart", mrModelPart);
rSerializer.save("ThisParameters", mThisParameters);
}

void load(Serializer &rSerializer) override
{
KRATOS_SERIALIZE_LOAD_BASE_CLASS(rSerializer, Process)
rSerializer.load("ModelPart", mrModelPart);
rSerializer.load("ThisParameters", mThisParameters);
}

}; // Class AdvanceInTimeHighCycleFatigueProcess

Expand Down

0 comments on commit 98d2dbf

Please sign in to comment.