fedoo.constitutivelaw.Simcoon
- class Simcoon(umat_name, props, tangent_mode=None, name='', *, ncp='fischer_burmeister', integrator=None)
Constitutive laws from the simcoon library.
The constitutive Law should be associated with
fedoo.weakform.StressEquilibrium- Parameters:
umat_name (str) – Name of the constitutive law: a 5-letter simcoon name, or
NAME_closedfor the dedicated kernel simcoon keeps next to its modular default (EPICP_closed,ZENER_closed…; same props and statev layout).props (numpy.array) – The constitive laws properties
tangent_mode (int, optional) –
Tangent operator requested from the Simcoon UMAT, forwarded unchanged (simcoon >= 2.0 numbering):
0: elastic operator (no tangent assembly, \(L_t = L\)).1: continuum tangent (fedoo default).2: algorithmic (consistent) tangent of the integrator that ran. This is the simcoon default.
Simcoon 2.3 no longer accepts
tangent_mode=3: the integration algorithm is selected withintegrator, not with a tangent mode.Modes 0 to 2 integrate the law with the same return mapping and only change the tangent. Simcoon versions before 2.0 used another numbering (
0continuum,1algorithmic): a script written for them must be renumbered. The attributetangent_modecan also be changed after construction. The defaultNoneselects1, or2withintegrator="closest_point", which only returns its algorithmic operator. It is resolved once, at construction: whenintegratoris changed afterwards, settangent_modeas well.name (str) – The name of the constitutive law
ncp ({"fischer_burmeister", "min"}, default="fischer_burmeister") – Complementarity function of the local return mapping, forwarded to
simcoon.umat()."min"is the classic step on a single surface with a Fischer-Burmeister fallback. Simcoon only accepts it for the laws that read it and raises aValueErrorotherwise. The set of laws depends on the simcoon version:EPICP,EPKCPand modular materials without an Armstrong-Frederick back stress, under the cutting plane only, in simcoon 2.3; every law served by the modular engine under both integrators from simcoon 2.4 (the cutting plane still refuses it with an Armstrong-Frederick back stress, the closest point takes it).integrator ({None, "default", "cutting_plane", "closest_point"}, default=None) – Local integrator of the laws with a return mapping, forwarded to
simcoon.umat()when given.Nonekeeps simcoon’s default: the cutting plane up to simcoon 2.4, the law’s own from simcoon 2.5 ("default": the closest point for the unified SMA laws SMADI, SMADC, SMAAI, SMAAC, SMRDI, SMRDC, SMRAI, SMRAC, the cutting plane for every other law)."closest_point"is a backward-Euler update with its own operators; simcoon raises aValueErrorat the first call of a law without a closest-point update (every name the modular engine serves has one; a dedicated kernel that keeps its own algorithm, such asZENER_closed, has none).that (ncp and integrator are keyword-only and are also attributes)
a (can be changed after construction (tangent_mode does not follow)
integrator). (change of)
constructor (Alternative)
-----------------------
:param
from_modular()builds the same Fedoo wrapper from a: :paramsimcoon.modular.ModularMaterial. The configuration supplies its: :param own flattened properties and state-variable count::: from simcoon.modular import elastic_modelconfiguration = elastic_model(E=210000.0, nu=0.3) material = Simcoon.from_modular(configuration, name=”steel”)
- Parameters:
is (The regular constructor)
``Simcoon(umat_name –
props
tangent_mode=None
name=""
*
ncp=...
:param : :param integrator=…)``.
nameis the fourth positional argument: :type integrator=…)``.nameis the fourth positional argument: scripts :param written for the historicalSimcoon(umat_name: :param props: :param name)order must: :param pass it asname=....:Notes
UMAT compatibility with the
2DaxiModelingSpace:Isotropic UMATs (e.g.
ELI,NEOH,MOON,EPICPJ2 plasticity): supported. Hooke’s response and J2 invariants are invariant under the slot remapping fedoo applies in 2Daxi (cf.fedoo.core.mechanical3d.Mechanical3D).Orthotropic / anisotropic UMATs (e.g.
ELIO, composite Mori-Tanaka, anisotropic damage / plasticity): user-supplied material direction “3” is silently the hoop direction in 2Daxi (because slot 2 of the 6-vector carries ε_θθ). Define the stiffness / hardening parameters with this convention or the response will not match the intended material orientation.Hyperelastic laws (those with
_Lt_from_F = True) run in plane stress (2Dstress) or uniaxial stress (1Dstress) only when simcoon condenses the state itself, which fedoo asks throughsimcoon.condensation_serves; otherwise aNotImplementedErroris raised. Unsupported reduced states are refused for strain-driven laws as well. They remain compatible with 2Daxi at finite strain provided the F[θθ] = r/R fix is in effect (seefedoo.weakform.stress_equilibrium._comp_grad_disp()).A modular material uses the
MODULUMAT. Undernlgeom="UL"it requires thelog_Rrate, the default. Small-strain analyses are unaffected.In plane stress (
2DstressModelingSpace, shell thickness points) simcoon runs the 3D law and solves the out-of-plane strain that makes the out-of-plane stress vanish. The returned tangent is already condensed, and the solved strain is stored in the out-of-plane components ofassembly.sv["Strain"](thickness strain).Under
nlgeom="TL"the laws run the total formulation: they are fed the material logarithmic strain ln U and work on the stress T dual to it (seefedoo.weakform.StressEquilibrium.kinematic_form).
- __init__(umat_name, props, tangent_mode=None, name='', *, ncp='fischer_burmeister', integrator=None)
Methods
Simcoon.condense_tangent(H, dimension)Condense a 3D tangent onto the stress state
dimension.Simcoon.from_modular(modular_material[, ...])Build a Simcoon law from a modular material configuration.
Simcoon.get_H_condensed(H, kept)Statically condense a 3D tangent onto the Voigt slots
kept.Convert a full 3D tangent matrix H in an equivalent behavior in 2D with the plane stress assumption.
Return a dict with all the known ConstitutiveLaw (with a name).
Simcoon.get_current_local_frame([assembly])Return the trial material frame in global coordinates.
Simcoon.get_local_frame([assembly])Return material frames, resolved at
assemblyGauss points.Simcoon.get_local_rotation([assembly, ...])Return a Simcoon rotation for the requested material frame.
Simcoon.get_tangent_matrix(assembly[, dimension])Simcoon.get_temp_gp(assembly, pb)Return the current temperature field at Gauss points, if any.
Simcoon.global2local_H(H[, assembly, current])Rotate a global stiffness to material axes using Simcoon.
Express a finite rotation increment in the initial material basis.
Simcoon.global2local_strain(strain[, ...])Express engineering-strain vector(s) from global to material axes.
Simcoon.global2local_stress(stress[, ...])Express stress Voigt vector(s) from global to material axes.
Simcoon.global2local_tensor(tensor[, assembly])Change both axes of 3x3 tensor fields to the initial material basis.
Simcoon.initialize(assembly, pb)Initialize the constitutive law for the current problem.
Simcoon.local2global_H(H[, assembly, current])Rotate a material stiffness to global axes using Simcoon.
Simcoon.local2global_strain(strain[, ...])Express engineering-strain vector(s) from material to global axes.
Simcoon.local2global_stress(stress[, ...])Express stress Voigt vector(s) from material to global axes.
Reset the constitutive law.
Simcoon.set_density(density)Set the mass density associated with this mechanical material.
Simcoon.set_initial_statev(assembly, label, ...)Set a labeled initial state-variable field on an assembly.
Simcoon.set_local_frame(local_frame[, location])Define the material coordinate frame.
Simcoon.set_start(assembly, pb)Begin a new time iteration.
Simcoon.to_start(assembly, pb)Restart the current time iteration.
Simcoon.update(assembly, pb)Update the constitutive law for the current problem state.
the objective rate is
weakform.corate.Hyperelastic kernels built from F (
_Lt_from_F) are objective by construction and keep the initial material basis.Name of the constitutive law.
Whether simcoon serves this law under the total formulation.
Tag set to True once the law is intialized.