ElastoPlasm Reference

ElastoPlasm.collapseMethod
collapse(ic::NamedTuple, cfg::NamedTuple) -> Bool

Runs the explicit solution workflow for the collapse problem, including simulation and postprocessing.

Arguments

  • ic::NamedTuple: Initial mesh/material/compression/time/gravity configuration.
  • cfg::NamedTuple: Simulation instructions and output paths.

Returns

  • Bool: Returns true if the simulation and postprocessing complete successfully.
source
ElastoPlasm.ic_collapseMethod
ic_collapse(dim::Int, nel::Vector{Int64}, ν, E, ρ0, l0; fid::String=..., kwargs...) -> NamedTuple, NamedTuple

Initializes the mesh, material points, constitutive model, and simulation configuration for a collapse test.

Arguments

  • dim::Int: Number of spatial dimensions (2 or 3).
  • nel::Vector{Int64}: Number of elements in each dimension.
  • ν, E, ρ0, l0: Physical parameters.
  • fid::String: (Optional) File or run identifier.
  • kwargs...: Additional keyword arguments for simulation configuration.

Returns

  • (ic, cfg): Two named tuples containing mesh/material/compression info (ic) and instructions/paths (cfg).
source
ElastoPlasm.ic_slumpMethod
ic_slump(L::Vector{Float64}, nel::Vector{Int64}; fid::String=..., kwargs...) -> NamedTuple, NamedTuple

Initializes the mesh, material points, and simulation configuration for a slump test.

Arguments

  • L::Vector{Float64}: Domain dimensions.
  • nel::Vector{Int64}: Number of elements in each dimension.
  • fid::String: (Optional) File or run identifier.
  • kwargs...: Additional keyword arguments for simulation configuration.

Returns

  • (ic, cfg): Two named tuples containing mesh/material point/compression info (ic) and instructions/paths (cfg).

Example

ic, cfg = ic_slump([64.0, 16.0], [40, 10]; fid="run1")
source
ElastoPlasm.slumpMethod
slump(ic::NamedTuple, cfg::NamedTuple; mutate::Bool=false) -> Bool

Runs the explicit solution workflow for the slump problem, including simulation and postprocessing.

Arguments

  • ic::NamedTuple: Initial mesh, material point, compression, and time configuration.
  • cfg::NamedTuple: Simulation instructions and output paths.

Returns

  • Bool: Returns true if the simulation and postprocessing complete successfully.

Example

success = slump(ic, cfg)
source