Skip to content

Commit 50a9945

Browse files
committed
updated kinematics
1 parent 87b11e4 commit 50a9945

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

test/data/StaticMechanicalDirichletSimulation.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,9 @@ function static_mechanical_dirichlet_simulation(;writevtk=true, verbose=true)
4242
U = TrialFESpace(V, D_bc, 0.0)
4343

4444
# residual and jacobian function of load factor
45-
res(Λ) = (u, v) -> residual(physmodel, u, v, dΩ)
46-
jac(Λ) = (u, du, v) -> jacobian(physmodel, u, du, v, dΩ)
45+
k = Kinematics(Mechano, Solid)
46+
res(Λ) = (u, v) -> residual(physmodel, k, u, v, dΩ)
47+
jac(Λ) = (u, du, v) -> jacobian(physmodel, k, u, du, v, dΩ)
4748

4849
#computational model
4950
ls = LUSolver()

test/data/StaticMechanicalNeumannSimulation.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,9 @@ function static_mechanical_neumann_simulation(;writevtk=true, verbose=true)
4848
U = TrialFESpace(V, D_bc, 0.0)
4949

5050
# residual and jacobian function of load factor
51-
res(Λ) = (u, v) -> residual(physmodel, u, v, dΩ) + residual_Neumann(N_bc, v, dΓ, Λ)
52-
jac(Λ) = (u, du, v) -> jacobian(physmodel, u, du, v, dΩ)
51+
k = Kinematics(Mechano, Solid)
52+
res(Λ) = (u, v) -> residual(physmodel, k, u, v, dΩ) + residual_Neumann(N_bc, v, dΓ, Λ)
53+
jac(Λ) = (u, du, v) -> jacobian(physmodel, k, u, du, v, dΩ)
5354

5455
ls = LUSolver()
5556
nls = NewtonSolver(ls; maxiter=20, atol=1.e-10, rtol=1.e-8, verbose=verbose)

0 commit comments

Comments
 (0)