Skip to content

Commit

Permalink
added dependency to bondbased elastic
Browse files Browse the repository at this point in the history
  • Loading branch information
JTHesse committed Jan 10, 2025
1 parent cf81d44 commit c13a34d
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Models/Material/Material_Basis.jl
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ function get_Hooke_matrix(parameter::Dict, symmetry::String, dof::Int64, ID::Int
end
end

function get_2D_Hooke_matrix(aniso_matrix::Matrix{Float64}, symmetry::String, dof::Int64)
function get_2D_Hooke_matrix(aniso_matrix::MMatrix, symmetry::String, dof::Int64)
if dof == 3
return aniso_matrix
elseif occursin("plane strain", symmetry)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@

module Bondbased_Elastic
include("../../Material_Basis.jl")
include("../../../../Support/Helpers.jl")
using .Material_Basis: get_symmetry, apply_pointwise_E, compute_bond_based_constants
using .Helpers: is_dependent
using LoopVectorization
using TimerOutputs
export init_model
Expand Down Expand Up @@ -105,6 +107,9 @@ function compute_model(

E = material_parameter["Young's Modulus"]

dependend_value, dependent_field =
is_dependent("Young's Modulus", material_parameter, datamanager)

for iID in nodes
if any(deformed_bond_length[iID] .== 0)
@error "Length of bond is zero due to its deformation."
Expand All @@ -128,7 +133,11 @@ function compute_model(
#
end
# might be put in constant
apply_pointwise_E(nodes, E, bond_force)
if dependend_value
apply_pointwise_E(nodes, E, bond_force, dependent_field)
else
apply_pointwise_E(nodes, E, bond_force)
end
return datamanager
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,12 @@ PeriLab:
External_Forces: True
External_Displacements: True
Temperature: True
Cauchy Stress: True
Models:
Damage Models:
Damage:
Damage Model: Critical Energy
Critical Value: crictical_energy_temperature_depended.txt #0.0035714285714285716
# Temperature dependend: "crictical_energy_temperature_depended.txt"
Critical Value: crictical_energy_temperature_depended.txt
Thermal Models:
Temp:
Thermal Model: "Thermal Flow"
Expand All @@ -125,5 +125,6 @@ PeriLab:
Damage Models: true
Thermal Models: true
Numerical Damping: 5.0e-06
Calculate Cauchy: true
Verlet:
Safety Factor: 0.9
Binary file not shown.

0 comments on commit c13a34d

Please sign in to comment.