hookeai.simulators.fetorch.material.models.standard.von_mises.VonMises¶
- class VonMises(strain_formulation, problem_type, model_parameters, is_su_float64=True, device_type='cpu')[source]¶
Bases:
ConstitutiveModelVon Mises constitutive model with isotropic strain hardening.
- _strain_type¶
Material constitutive model strain formulation: infinitesimal strain formulation (‘infinitesimal’), finite strain formulation (‘finite’) or finite strain formulation through kinematic extension (‘finite-kinext’).
- Type:
{‘infinitesimal’, ‘finite’, ‘finite-kinext’}
- _is_su_float64¶
If True, then state update is locally computed in floating-point double precision. If False, then default floating-point precision is assumed.
- Type:
- _device_type¶
Type of device on which torch.Tensor is allocated.
- Type:
{‘cpu’, ‘cuda’}
- _device¶
Device on which torch.Tensor is allocated.
- Type:
torch.device
- state_update(self, inc_strain, state_variables_old)[source]¶
Perform material constitutive model state update.
Constitutive model constructor.
- Parameters:
strain_formulation ({'infinitesimal', 'finite'}) – Problem strain formulation.
problem_type (int) – Problem type: 2D plane strain (1), 2D plane stress (2), 2D axisymmetric (3) and 3D (4).
model_parameters (dict) – Material constitutive model parameters.
is_su_float64 (bool, default=True) – If True, then state update is locally computed in floating-point double precision. If False, then default floating-point precision is assumed.
device_type ({'cpu', 'cuda'}, default='cpu') – Type of device on which torch.Tensor is allocated.
List of Public Methods
Get device on which torch.Tensor is allocated.
Get material constitutive model parameters.
Get material constitutive model name.
Get required material constitutive model parameters.
Get material constitutive model strain formulation.
Set device on which torch.Tensor is allocated.
Get initialized material constitutive model state variables.
Perform material constitutive model state update.
Methods
- __init__(strain_formulation, problem_type, model_parameters, is_su_float64=True, device_type='cpu')[source]¶
Constitutive model constructor.
- Parameters:
strain_formulation ({'infinitesimal', 'finite'}) – Problem strain formulation.
problem_type (int) – Problem type: 2D plane strain (1), 2D plane stress (2), 2D axisymmetric (3) and 3D (4).
model_parameters (dict) – Material constitutive model parameters.
is_su_float64 (bool, default=True) – If True, then state update is locally computed in floating-point double precision. If False, then default floating-point precision is assumed.
device_type ({'cpu', 'cuda'}, default='cpu') – Type of device on which torch.Tensor is allocated.
- get_device()¶
Get device on which torch.Tensor is allocated.
- Returns:
device_type ({‘cpu’, ‘cuda’}) – Type of device on which torch.Tensor is allocated.
device (torch.device) – Device on which torch.Tensor is allocated.
- get_model_parameters()¶
Get material constitutive model parameters.
- Returns:
model_parameters – Material constitutive model parameters.
- Return type:
- get_name()¶
Get material constitutive model name.
- Returns:
name – Material constitutive model name.
- Return type:
- static get_required_model_parameters()[source]¶
Get required material constitutive model parameters.
Model parameters:
‘elastic_symmetry’ : Elastic symmetry (str, {‘isotropic’, ‘transverse_isotropic’, ‘orthotropic’, ‘monoclinic’, ‘triclinic’});
‘elastic_moduli’ : Elastic moduli (dict, {‘Eijkl’: float});
- ‘euler_angles’Euler angles (degrees) sorted according with Bunge
convention (tuple[float]).
‘hardening_law’ : Isotropic hardening law (function)
‘hardening_parameters’ : Isotropic hardening law parameters (dict)
- get_strain_type()¶
Get material constitutive model strain formulation.
- Returns:
strain_type – Material constitutive model strain formulation: infinitesimal strain formulation (‘infinitesimal’), finite strain formulation (‘finite’) or finite strain formulation through kinematic extension (‘finite-kinext’).
- Return type:
{‘infinitesimal’, ‘finite’, ‘finite-kinext’}
- set_device(device_type)¶
Set device on which torch.Tensor is allocated.
- Parameters:
device_type ({'cpu', 'cuda'}) – Type of device on which torch.Tensor is allocated.
device (torch.device) – Device on which torch.Tensor is allocated.
- state_init()[source]¶
Get initialized material constitutive model state variables.
Constitutive model state variables:
e_strain_mfInfinitesimal strains: Elastic infinitesimal strain tensor (matricial form).
Finite strains: Elastic spatial logarithmic strain tensor (matricial form).
Symbol: \(\boldsymbol{\varepsilon^{e}}\) / \(\boldsymbol{\varepsilon^{e}}\)
acc_p_strainAccumulated plastic strain.
Symbol: \(\bar{\varepsilon}^{p}\)
strain_mfInfinitesimal strains: Infinitesimal strain tensor (matricial form).
Finite strains: Spatial logarithmic strain tensor (matricial form).
Symbol: \(\boldsymbol{\varepsilon}\) / \(\boldsymbol{\varepsilon}\)
stress_mfInfinitesimal strains: Cauchy stress tensor (matricial form).
Finite strains: Kirchhoff stress tensor (matricial form) within
state_update(), first Piola-Kirchhoff stress tensor (matricial form) otherwise.Symbol: \(\boldsymbol{\sigma}\) / (\(\boldsymbol{\tau}\), \(\boldsymbol{P}\))
is_plasticPlastic step flag.
is_su_failState update failure flag.
- Returns:
state_variables_init – Initialized material constitutive model state variables.
- Return type:
- state_update(inc_strain, state_variables_old)[source]¶
Perform material constitutive model state update.
- Parameters:
inc_strain (torch.Tensor(2d)) – Incremental strain second-order tensor.
state_variables_old (dict) – Last converged constitutive model material state variables.
- Returns:
state_variables (dict) – Material constitutive model state variables.
consistent_tangent_mf (torch.Tensor(2d)) – Material constitutive model consistent tangent modulus stored in matricial form.