Skip to content

Commit a03c93f

Browse files
authored
Merge pull request #56 from MultiSimOLab/piola
2 parents 3c3ecb7 + 65dd1b1 commit a03c93f

3 files changed

Lines changed: 15 additions & 7 deletions

File tree

src/ComputationalModels/ComputationalModels.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ export get_test_space
7878
include("PostProcessors.jl")
7979
export PostProcessor
8080
export Cauchy
81+
export Piola
8182
export Jacobian
8283
export Entropy
8384
export D0

src/ComputationalModels/PostProcessors.jl

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ function Jacobian(uh,km)
7676
J F (uh)
7777
end
7878

79-
function Cauchy(physmodel::ThermoElectroMechano,kine::NTuple{3,KinematicModel}, uh, φh, θh, Ω, dΩ, Λ=1.0)
79+
function Piola(physmodel::ThermoElectroMechano,kine::NTuple{3,KinematicModel}, uh, φh, θh, Ω, dΩ, Λ=1.0)
8080
= physmodel(Λ)
8181

8282
F, _, _ = get_Kinematics(kine[1])
@@ -100,26 +100,32 @@ function Cauchy(physmodel::ThermoElectroMechano,kine::NTuple{3,KinematicModel},
100100
end
101101

102102

103-
function Cauchy(model::Elasto,km::KinematicModel,uh, unh, state_vars, Ω, dΩ, t, Δt)
104-
σh = Cauchy(model,km,uh)
103+
function Cauchy(args...)
104+
@warn "The function Cauchy is deprecated and will be removed at the end of November 25. Please, replace it by Piola."
105+
Piola(args...)
106+
end
107+
108+
109+
function Piola(model::Elasto,km::KinematicModel,uh, unh, state_vars, Ω, dΩ, t, Δt)
110+
σh = Piola(model,km,uh)
105111
interpolate_L2_tensor(σh, Ω, dΩ)
106112
end
107113

108114

109-
function Cauchy(model::ViscoElastic, km::KinematicModel, uh, unh, state_vars, Ω, dΩ, t, Δt)
110-
σh = Cauchy(model, km, uh, unh, state_vars, Δt)
115+
function Piola(model::ViscoElastic, km::KinematicModel, uh, unh, state_vars, Ω, dΩ, t, Δt)
116+
σh = Piola(model, km, uh, unh, state_vars, Δt)
111117
interpolate_L2_tensor(σh, Ω, dΩ)
112118
end
113119

114120

115-
function Cauchy(model::Elasto, km::KinematicModel,uh, vars...)
121+
function Piola(model::Elasto, km::KinematicModel,uh, vars...)
116122
_, ∂Ψu, _ = model()
117123
F, _, _ = get_Kinematics(km)
118124
∂Ψu (F(uh))
119125
end
120126

121127

122-
function Cauchy(model::ViscoElastic, km::KinematicModel, uh, unh, states, Δt)
128+
function Piola(model::ViscoElastic, km::KinematicModel, uh, unh, states, Δt)
123129
_, ∂Ψu, _ = model(Δt=Δt)
124130
F, _, _ = get_Kinematics(km)
125131
∂Ψu (F(uh), F(unh), states...)

src/Exports.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ end
118118
@publish ComputationalModels PostMetrics
119119
@publish ComputationalModels StaggeredModel
120120
@publish ComputationalModels Cauchy
121+
@publish ComputationalModels Piola
121122
@publish ComputationalModels Jacobian
122123
@publish ComputationalModels Entropy
123124
@publish ComputationalModels D0

0 commit comments

Comments
 (0)