Index of all other available objects¶
Documentation of all other types.
AsterToMedWriter object¶
- class code_aster.Objects.AsterToMedWriter[source]¶
Bases:
object- printMesh(*args, **kwargs)[source]¶
Overloaded function.
printMesh(self: libaster.AsterToMedWriter, mesh: libaster.Mesh, path: os.PathLike, parallelPrint: bool = False, mesh_name: str = ‘’) -> bool
Print mesh to med file
- Parameters:
Mesh – mesh to print
path (Path|str) – path to med file
parallelPrint (bool) – false by default. If true print in one parallel file (optional)
mesh_name (str) – mesh name (optional)
printMesh(self: libaster.AsterToMedWriter, mesh: libaster.ParallelMesh, path: os.PathLike, parallelPrint: bool = False, mesh_name: str = ‘’) -> bool
Print mesh to med file
- Parameters:
Mesh – mesh to print
path (Path|str) – path to med file
parallelPrint (bool) – false by default. If true print in one parallel file (optional)
mesh_name (str) – mesh name (optional)
printMesh(self: libaster.AsterToMedWriter, mesh: libaster.ConnectionMesh, path: os.PathLike, parallelPrint: bool = False, mesh_name: str = ‘’) -> bool
Print mesh to med file
- Parameters:
Mesh – mesh to print
path (Path|str) – path to med file
parallelPrint (bool) – false by default. If true print in one parallel file (optional)
mesh_name (str) – mesh name (optional)
CodedMaterial object¶
CommGraph object¶
ConstantFieldValuesReal object¶
ContactAlgo object¶
ContactComputation object¶
- class code_aster.Objects.ContactComputation(arg0)[source]¶
Bases:
object- contactCoefficient()[source]¶
Compute contact coefficients at the nodes of the slave surface based on values of COEF_CONT and COEF_FROT
- Returns:
coefficients (COEF_CONT and COEF_FROT)
- Return type:
list[FieldOnNodesReal]
- contactData(pairing, material, initial_contact)[source]¶
Compute contact data as input to compute contact forces and matrices.
- Parameters:
pairing (ContactPairing) – pairing object
material (MaterialField) – material field
initial_contact (bool) – True to use value in contact definition (CONTACT_INIT).
- Returns:
contact data
- Return type:
ContactParameter object¶
- class code_aster.Objects.ContactParameter[source]¶
Bases:
object- getAlgorithm()[source]¶
Return the contact algorithm used. It is a value of an enum
- Returns:
contact algorithm.
- Return type:
- getCoefficient()[source]¶
Return the contact coefficient used. It is a value of a float
- Returns:
contact coefficient.
- Return type:
float
- getIntegrationType()[source]¶
Return how the integration is made. It is a value of an enum
- Returns:
Integration type.
- Return type:
- getJacobianType()[source]¶
Return how the Jacobian is computed. It is a value of an enum
- Returns:
Jacobian type.
- Return type:
- getType()[source]¶
Return the contact type used. It is a value of an enum
- Returns:
contact type.
- Return type:
- getVariant()[source]¶
Return the contact variant used. It is a value of an enum
- Returns:
contact variant.
- Return type:
- setAlgorithm(algo)[source]¶
Set the contact algorithm used. It is a value of an enum
- Parameters:
ContactAlgo – contact algorithm.
- setCoefficient(coeff)[source]¶
Set the contact coefficient used. It is a value of a float
- Parameters:
float – contact coefficient.
- setIntegrationType(type)[source]¶
Set how the integration is made. It is a value of an enum
- Parameters:
IntegrationType – Integration type.
- setJacobianType(type)[source]¶
Set how the Jacobian is computed. It is a value of an enum
- Parameters:
JacobianType – Jacobian type.
ContactType object¶
ContactVariant object¶
CoordinatesSpace object¶
CouplingMethod object¶
CrackShape object¶
DiscreteComputation object¶
- class code_aster.Objects.DiscreteComputation(arg0)[source]¶
Bases:
object- getAcousticDirichletBC(time_curr=0.0)[source]¶
Return the imposed acoustic vector used to remove imposed DDL for internal use - prefer to use getDirichletBC
- Parameters:
time_curr (float) – Current time (default 0.0)
- Returns:
imposed accoustic vector
- Return type:
- getAcousticImposedDualBC(assembly=True)[source]¶
Return the acoustic imposed nodal BC elementary vector
- Parameters:
assembly (bool) – if True return assembled vector (default: True)
- Returns:
imposed dual vector
- Return type:
- getAcousticNeumannForces(assembly=True)[source]¶
Return the elementary acoustic Neumann forces vector
- Parameters:
assembly (bool) – if True return assembled vector (default: True)
- Returns:
elementary Neumann forces vector
- Return type:
- getAcousticVolumetricForces(assembly=True)[source]¶
Return the elementary acoustic volumetric forces vector
- Parameters:
assembly (bool) – if True return assembled vector (default: True)
- Returns:
elementary volumetric forces vector
- Return type:
- getCompressibilityMatrix(groupOfCells=[])[source]¶
Return the elementary matrices for compressibility acoustic matrix. Option MASS_ACOU.
- Parameters:
groupOfCells (list[str]) – compute matrices on given groups of cells. If it empty, the full model is used
- Returns:
elementary mass matrix
- Return type:
ElementaryMatrix
- getContactForces(geom, displ_prev, displ_step, time_prev, time_step, data, coef_cont, coef_frot)[source]¶
Compute contact and friction forces
- Parameters:
geom (MeshCoordinatesField) – coordinates of mesh used to compute normal
displ_prev (FieldOnNodes) – displacement field at begin of current time
displ_step (FieldOnNodes) – field of increment of displacement
time_prev (float) – time at begin of the step
time_curr (float) – delta time between begin and end of the step
data (FieldOnCellsReal) – contact data
coef_cont (FieldOnNodesReal) – contact coefficient
coef_frot (FieldOnNodesReal) – friction coefficient
- Returns:
contact and friction forces
- Return type:
- getContactMatrix(geom, displ_prev, displ_step, time_prev, time_step, data, coef_cont, coef_frot)[source]¶
Compute contact matrix
- Parameters:
geom (MeshCoordinatesField) – coordinates of mesh used to compute normal
displ_prev (FieldOnNodes) – displacement field at begin of current time
displ_step (FieldOnNodes) – field of increment of displacement
time_prev (float) – time at begin of the step
time_curr (float) – delta time between begin and end of the step
data (FieldOnCellsReal) – contact data
coef_cont (FieldOnNodesReal) – contact coefficient
coef_frot (FieldOnNodesReal) – friction coefficient
- Returns:
contact and friction elementary matrix
- Return type:
- getDualElasticStiffnessMatrix()[source]¶
Return elementary matrices for dual mechanical BC
- Returns:
elementary matrices
- Return type:
ElementaryMatrix
- getDualForces(U)[source]¶
Return the imposed displacement assembled vector
- Parameters:
U (FieldOnNodes) – current displacement vector
- Returns:
dual reaction vector (B^T*lambda)
- Return type:
FieldOnNodes
- getDualLinearConductivityMatrix()[source]¶
Return elementary matrices for dual thermal BC
- Returns:
elementary matrices
- Return type:
ElementaryMatrix
- getDualLinearMobilityMatrix()[source]¶
Return elementary matrices for dual acoustic BC
- Returns:
elementary matrices
- Return type:
ElementaryMatrix
- getDualPrimal(U, scaling=1.0)[source]¶
Return the Dirichlet load vector
- Parameters:
U (FieldOnNodes) – current displacement vector
- Returns:
Dirichlet load vector
- Return type:
FieldOnNodes
- getElasticStiffnessMatrix(time_curr=0.0, fourierMode=-1, varc_curr=None, groupOfCells=[], with_dual=True)[source]¶
Return the elementary matrices for elastic Stiffness matrix. Option RIGI_MECA.
- Parameters:
time_curr (float) – Current time for external state variable evaluation (default: 0.0)
fourierMode (int) – Fourier mode (default: -1)
varc_curr (FieldOnCellsReal) – external state variables at current time
groupOfCells (list[str]) – compute matrices on given groups of cells. If it empty, the full model is used
with_dual (bool) – compute dual terms or not (default: True)
- Returns:
elementary elastic Stiffness matrix
- Return type:
ElementaryMatrix
- getExternalStateVariablesForces(time_curr, varc_curr, varc_prev=None, vari_curr=None, stress_prev=None, mode=0, assembly=True, mask=None)[source]¶
Compute load from external state variables
- Parameters:
time_curr (float) – Current time
varc_curr (FieldOnCellsReal) – external state variables at current time
varc_prev (FieldOnCells) – external state variables at begin of current time
vari_curr (FieldOnCellsReal) – internal state variables at current time
stress_prev (FieldOnCellsReal) – stress at begin of current time
mode (int) – fourier mode
assembly (bool) – assemble or not
mask (FieldOnCellsLongPtr) – mask to assemble
- Returns:
load from external state variables
- Return type:
FieldOnNodes
- getFluidStructureMassMatrix(varc_curr=None, groupOfCells=[])[source]¶
Return the elementary matrices for fluid-structure mass matrix. Option MASS_FLUI_STRUC.
- Parameters:
varc_curr (FieldOnCellsReal) – external state variables at current time
groupOfCells (list[str]) – compute matrices on given groups of cells. If it empty, the full model is used
- Returns:
elementary fluid-structure mass matrix
- Return type:
ElementaryMatrixReal
- getFluidStructureStiffnessMatrix(fourierMode=-1, varc_curr=None, groupOfCells=[])[source]¶
Return the elementary matrices for fluid-structure stiffness matrix. Option RIGI_FLUI_STRUC.
- Parameters:
fourierMode (int) – Fourier mode (default: -1)
varc_curr (FieldOnCells) – internal state variables at current time
groupOfCells (list[str]) – compute matrices on given groups of cells. If it empty, the full model is used
- Returns:
elementary fluid-structure Stiffness matrix
- Return type:
ElementaryMatrixReal
- getGeometricStiffnessMatrix(sief_elga, strx_elga=None, displ=None, modeFourier=-1, groupOfCells=[])[source]¶
Return the elementary matrices for geometric Stiffness matrix. Option RIGI_MECA_HYST.
- Parameters:
sief_elga (FieldOnCellsReal) – stress at Gauss points
strx_elga (FieldOnCellsReal) – stress at Gauss points for structural element
displ (FieldOnNodesReal) – displacement field
groupOfCells (list[str]) – compute matrices on given groups of cells. If it empty, the full model is used
- Returns:
elementary geometric rigidity matrix
- Return type:
ElementaryMatrixComplex
- getGyroscopicDampingMatrix(groupOfCells=[])[source]¶
Return the elementary matrices for gyroscopic damping matrix. Option MECA_GYRO.
- Parameters:
groupOfCells (list[str]) – compute matrices on given groups of cells. If it empty, the full model is used
- Returns:
elementary gyroscopic damping matrix
- Return type:
ElementaryMatrixReal
- getGyroscopicStiffnessMatrix(groupOfCells=[])[source]¶
Return the elementary matrices for gyroscopic Stiffness matrix. Option RIGI_GYRO.
- Parameters:
groupOfCells (list[str]) – compute matrices on given groups of cells. If it empty, the full model is used
- Returns:
elementary gyroscopic rigidity matrix
- Return type:
ElementaryMatrixReal
- getHystereticStiffnessMatrix(stiffnessMatrix, varc_curr=None, groupOfCells=[])[source]¶
Return the elementary matrices for viscoelastic Stiffness matrix. Option RIGI_MECA_HYST.
- Parameters:
stiffnessMatrix – elementary stiffness matrix
varc_curr (FieldOnCellsReal) – external state variables at current time
groupOfCells (list[str]) – compute matrices on given groups of cells. If it empty, the full model is used
- Returns:
elementary viscoelastic rigidity matrix
- Return type:
ElementaryMatrixComplex
- getImpedanceBoundaryMatrix(groupOfCells=[], onde_flui=1)[source]¶
Return the elementary matrices for impedance (mechanical) matrix. Option IMPE_MECA.
- Parameters:
groupOfCells (list[str]) – compute matrices on given groups of cells. If it empty, the full model is used
onde_flui (int) – integer to indicate if we have an outgoing or incoming wave
- Returns:
impedance mechanical matrix
- Return type:
ElementaryMatrixReal
- getImpedanceMatrix(arg0)[source]¶
Return the elementary matrices for impedance (acoustic) damping matrix. Option AMOR_ACOU.
- Returns:
elementary damping matrix
- Return type:
ElementaryMatrixReal
- getImpedanceWaveMatrix(groupOfCells=[])[source]¶
Return the elementary matrices for impedance (mechanical) matrix from an harmonic wave. Option ONDE_FLUI.
- Returns:
impedance wave matrix
- Return type:
ElementaryMatrixReal
- getIncrementalDirichletBC(time_curr, disp)[source]¶
Return the incremental imposed displacement vector used to remove imposed DDL for incremental resolution.
incr_disp = getDirichletBC(time_curr) - disp, with 0.0 for DDL not imposed
- Parameters:
time_curr (float) – Current time
disp (FieldOnNodes) – displacement field at current time
- Returns:
incremental imposed displacement vector
- Return type:
FieldOnNodes
- getInternalMechanicalForces(displ_prev, displ_step, stress, internVar, internVarIter, time_prev, time_step, varc_prev=None, varc_curr=None, groupOfCells=[])[source]¶
Compute internal forces (integration of behaviour)
- Parameters:
displ_prev (FieldOnNodes) – displacement field at begin of current time
displ_step (FieldOnNodes) – field of increment of displacement
stress (FieldOnCells) – field of stress at begin of current time
internVar (FieldOnCells) – field of internal state variables at begin of current time
internVarIter (FieldOnCells) – field of internal state variables at begin of current newton iteration
time_prev (float) – time at begin of the step
time_step (float) – delta time between begin and end of the step
varc_prev (FieldOnCells) – external state variables at begin of current time
varc_curr (FieldOnCellsReal) – external state variables at current time
groupOfCells (list[str]) – compute matrices on given groups of cells.
- Returns:
return code error (FieldOnCells), error code flag (int), internal state variables VARI_ELGA (FieldOnCells), Cauchy stress SIEF_ELGA (FieldOnCells), field of internal forces (FieldOnNodesReal),
- Return type:
tuple (tuple)
- getInternalThermalForces(temp_prev, temp_step, varc_curr=None, groupOfCells=[])[source]¶
Compute internal thermal forces (integration of behaviour) Option RAPH_THER.
- Parameters:
temp_prev (FieldOnNodes) – thermal field at begin of current time
temp_step (FieldOnNodes) – field of increment of temperature
varc_curr (FieldOnCellsReal) – external state variables at current time
groupOfCells (list[str]) – compute matrices on given groups of cells. If it empty, the full model is used
- Returns:
error code flag (int), fluxes FLUX_ELGA (FieldOnCellsReal), internal forces (FieldOnNodesReal),
- Return type:
tuple (tuple)
- getLinearCapacityMatrix(time_curr, varc_curr=None, groupOfCells=[])[source]¶
Return the elementary matrices for linear Capacity matrix in thermal computation. Option MASS_THER.
- Parameters:
time_curr (float) – current time to evaluate rho_cp
varc_curr (FieldOnCellsReal) – external state variables at current time
groupOfCells (list[str]) – compute matrices on given groups of cells. If it empty, the full model is used
- Returns:
elementary mass matrix
- Return type:
ElementaryMatrix
- getLinearConductivityMatrix(time_curr, fourierMode=0, varc_curr=None, groupOfCells=[], with_dual=True)[source]¶
Return the elementary matices for linear thermal matrix. Option RIGI_THER.
- Parameters:
time_curr (float) – Current time
fourierMode (int) – Fourier mode (default: -1)
varc_curr (FieldOnCellsReal) – external state variables at current time
groupOfCells (list[str]) – compute matrices on given groups of cells. If it empty, the full model is used
with_dual (bool) – compute dual terms or not (default: True)
- Returns:
elementary linear thermal matrices
- Return type:
ElementaryMatrix
- getLinearMobilityMatrix(groupOfCells=[], with_dual=True)[source]¶
Return the elementary matices for linear mobility acoustic matrix Option RIGI_ACOU.
- Parameters:
groupOfCells (list[str]) – compute matrices on given groups of cells.
with_dual (bool) – compute dual terms or not (default: True)
- Returns:
elementary linear acoustic matrices
- Return type:
ElementaryMatrix
- getMechanicalCouplingForces(displ_prev, displ_step, time_prev, time_step)[source]¶
Compute coupling for LIAISON_MASSIF.
- Parameters:
displ_prev (FieldOnNodes) – displacement field at begin of current time
displ_step (FieldOnNodes) – field of increment of displacement
time_prev (float) – time at begin of the step
time_curr (float) – delta time between begin and end of the step
- Returns:
coupling forces
- Return type:
- getMechanicalCouplingMatrix(displ_prev, displ_step, time_prev, time_step)[source]¶
Compute coupling for LIAISON_MASSIF.
- Parameters:
displ_prev (FieldOnNodes) – displacement field at begin of current time
displ_step (FieldOnNodes) – field of increment of displacement
time_prev (float) – time at begin of the step
time_curr (float) – delta time between begin and end of the step
- Returns:
coupling elementary matrix.
- Return type:
- getMechanicalDampingMatrix(getMechanicalMassMatrix=None, stiffnessMatrix=None, varc_curr=None, groupOfCells=[], flui_int=1, onde_flui=1)[source]¶
Return the elementary matrices for damping matrix. Option AMOR_MECA.
- Parameters:
getMechanicalMassMatrix – elementary mass matrix
stiffnessMatrix – elementary stiffness matrix
varc_curr (FieldOnCellsReal) – external state variables at current time
groupOfCells (list[str]) – compute matrices on given groups of cells. If it empty, the full model is used
flui_int (int) – integer to activate damping impedance fluid matrix
onde_flui (int) – integer to indicate if we have an outgoing or incoming wave
- Returns:
elementary damping matrix
- Return type:
ElementaryMatrixReal
- getMechanicalDirichletBC(time_curr=0.0)[source]¶
Return the imposed displacement vector used to remove imposed DDL for internal use - prefer to use getDirichletBC
- Parameters:
time_curr (float) – Current time (default 0.0)
- Returns:
imposed displacement vector
- Return type:
- getMechanicalForces(time_curr=0.0, time_step=0.0, theta=1.0, modeFourier=0, varc_curr=None)[source]¶
Return the total mechanical Neumann forces vector
- Parameters:
time_curr (float) – Current time
time_step (float) – Time increment
theta (float) – Theta parameter for time-integration
modeFourier (int) – fourier mode
varc_curr (FieldOnCellsReal) – external state variables at current time
- Returns:
forces vector
- Return type:
- getMechanicalImposedDualBC(time_curr=0.0, assembly=True)[source]¶
Return the mechanical imposed nodal BC elementary vector
- Parameters:
time_curr (float) – Current time (default: 0.0)
assembly (bool) – if True return assembled vector (default: True)
- Returns:
imposed dual vector
- Return type:
- getMechanicalLinearCouplingMatrix(varc_curr=None)[source]¶
Compute coupling for LIAISON_MASSIF.
- Parameters:
varc_curr (FieldOnCellsReal) – external state variables for Nitsche method.
- Returns:
coupling elementary matrix.
- Return type:
- getMechanicalMassMatrix(diagonal, varc_curr=None, groupOfCells=[])[source]¶
Return the elementary matrices for mechanical mass matrix Option MASS_MECA.
- Parameters:
diagonal (bool) – True for diagonal mass matrix else False.
varc_curr (FieldOnCellsReal) – external state variables at current time
groupOfCells (list[str]) – compute matrices on given groups of cells. If it empty, the full model is used
- Returns:
elementary mass matrix
- Return type:
ElementaryMatrix
- getMechanicalNeumannForces(time_curr=0.0, time_step=0.0, theta=1.0, mode=0, varc_curr=None, assembly=True)[source]¶
Return the elementary mechanical Neumann forces vector
- Parameters:
time_curr (float) – Current time
time_step (float) – Time increment
theta (float) – Theta parameter for time-integration
mode (int) – fourier mode
varc_curr (FieldOnCellsReal) – external state variables at current time
assembly (bool) – if True return assembled vector (default: True)
- Returns:
elementary Neumann forces vector
- Return type:
- getMechanicalNodalForces(stress, disp=None, modeFourier=0, varc_curr=None, behaviourMap=None, groupOfCells=[], assembly=True)[source]¶
Return the elementary mechanical nodal forces vector
- Parameters:
stress (FieldOnCells) – field of stresses
disp (FieldOnNodes) – displacement field (required for large strains hypothesis)
modeFourier (int) – fourier mode
varc_curr (FieldOnCellsReal) – external state variables
behaviourMap (FieldOnCellsReal) – map for non-linear behaviour
groupOfCells (list[str]) – compute vector on given groups of cells.
assembly (bool) – if True return assembled vector (default: True)
- Returns:
elementary Neumann forces vector
- Return type:
- getMechanicalReactionForces(disp, stress, time_prev=0.0, time_curr=0.0, theta=1.0, modeFourier=0, varc_curr=None, behaviourMap=None)[source]¶
Return the reaction forces
- Parameters:
stress (FieldOnCells) – field of stresses
disp (FieldOnNodes) – displacement field (required for large strains hypothesis)
time_prev (float) – time at begin of the step
time_curr (float) – time at end of the step
theta (float) – Theta parameter for time-integration
modeFourier (int) – fourier mode
varc_curr (FieldOnCellsReal) – external state variables at current time
behaviourMap (FieldOnCellsReal) – map for non-linear behaviour
- Returns:
forces vector
- Return type:
- getMechanicalVolumetricForces(time_curr=0.0, time_step=0.0, theta=1.0, mode=0, varc_curr=None, assembly=True)[source]¶
Return the elementary mechanical Volumetric forces vector
- Parameters:
time_curr (float) – Current time
time_step (float) – Time increment
theta (float) – Theta parameter for time-integration
mode (int) – fourier mode
varc_curr (FieldOnCellsReal) – external state variables at current time
assembly (bool) – if True return assembled vector (default: True)
- Returns:
elementary Volumetric forces vector
- Return type:
- getNonLinearCapacityForces(temp_prev, temp_step, varc_curr=None, groupOfCells=[])[source]¶
Compute internal thermal forces (integration of behaviour) Option MASS_THER_RESI.
- Parameters:
temp_prev (FieldOnNodes) – thermal field at begin of current time
temp_step (FieldOnNodes) – field of increment of temperature
varc_curr (FieldOnCellsReal) – external state variables at current time
groupOfCells (list[str]) – compute matrices on given groups of cells. If it empty, the full model is used
- Returns:
elementary mass matrix
- Return type:
ElementaryMatrix
- getPredictionTangentStiffnessMatrix(displ_prev, displ_step, stress, internVar, time_prev, time_step, varc_prev=None, varc_curr=None, groupOfCells=[])[source]¶
Compute jacobian matrix for Newton algorithm, Euler prediction
- Parameters:
displ_prev (FieldOnNodes) – displacement field at begin of current time
displ_step (FieldOnNodes) – field of increment of displacement
stress (FieldOnCells) – field of stress at begin of current time
internVar (FieldOnCells) – internal state variables at begin of current time
time_prev (float) – time at begin of the step
time_curr (float) – delta time between begin and end of the step
varc_prev (FieldOnCellsReal) – external state variables at begin of current time
varc_curr (FieldOnCellsReal) – external state variables at current time
groupOfCells (list[str]) – compute matrices on given groups of cells.
- Returns:
return code error (FieldOnCellsLong), error code flag (int), elementary tangent matrix (ElementaryMatrixDisplacementReal)
- Return type:
tuple (tuple)
- getResidualReference(arg0)[source]¶
Return the residual reference (for RESI_REFE_RELA)
- Parameters:
vale_by_name – dict : keys are component names values are the given reference value corresponding to component name
- Returns:
residual reference forces vector
- Return type:
- getRotationalStiffnessMatrix(groupOfCells=[])[source]¶
Return the elementary matrices for rotational Stiffness matrix. Option RIGI_ROTA.
- Parameters:
groupOfCells (list[str]) – compute matrices on given groups of cells. If it empty, the full model is used
- Returns:
elementary rotational rigidity matrix
- Return type:
ElementaryMatrixReal
- getTangentCapacityMatrix(temp_prev, temp_step, varc_curr=None, groupOfCells=[])[source]¶
Return the elementary matrices for nonlinear Capacity matrix in thermal computation. Option MASS_THER_TANG.
- Parameters:
temp_prev (FieldOnNodes) – thermal field at begin of current time
temp_step (FieldOnNodes) – field of increment of temperature
varc_curr (FieldOnCellsReal) – external state variables at current time
groupOfCells (list[str]) – compute matrices on given groups of cells. If it empty, the full model is used
- Returns:
elementary mass matrix
- Return type:
ElementaryMatrix
- getTangentConductivityMatrix(temp_prev, temp_step, varc_curr=None, groupOfCells=[], with_dual=True)[source]¶
Return the elementary matrices for tangent conductivity. Option MASS_THER_TANG.
- Parameters:
temp_prev (FieldOnNodes) – thermal field at begin of current time
temp_step (FieldOnNodes) – field of increment of temperature
varc_curr (FieldOnCellsReal) – external state variables at current time
groupOfCells (list[str]) – compute matrices on given groups of cells. If it empty, the full model is used
with_dual (bool) – compute dual terms or not (default: True)
- Returns:
elementary mass matrix
- Return type:
ElementaryMatrix
- getTangentStiffnessMatrix(displ_prev, displ_step, stress, internVar, internVarIter, time_prev, time_step, varc_prev=None, varc_curr=None, groupOfCells=[])[source]¶
Compute jacobian matrix for Newton algorithm
- Parameters:
displ_prev (FieldOnNodes) – displacement field at begin of current time
displ_step (FieldOnNodes) – field of increment of displacement
stress (FieldOnCells) – field of stress at begin of current time
internVar (FieldOnCells) – internal state variables at begin of current time
internVarIter (FieldOnCells) – field of internal state variables at begin of current newton iteration
time_prev (float) – time at begin of the step
time_curr (float) – delta time between begin and end of the step
varc_prev (FieldOnCellsReal) – external state variables at begin of current time
varc_curr (FieldOnCellsReal) – external state variables at current time
groupOfCells (list[str]) – compute matrices on given groups of cells.
- Returns:
return code error (FieldOnCellsLong), error code flag (int), elementary tangent matrix (ElementaryMatrixDisplacementReal)
- Return type:
tuple (tuple)
- getThermalDirichletBC(time_curr=0.0)[source]¶
Return the imposed thermal vector used to remove imposed DDL for internal use - prefer to use getDirichletBC
- Parameters:
time_curr (float) – Current time (default 0.0)
- Returns:
imposed thermal vector
- Return type:
- getThermalExchangeForces(temp_curr, time_curr=0.0, assembly=True)[source]¶
Return the elementary thermal Exchange forces vector
- Parameters:
temp_curr (FieldOnNodesReal) – thermal field at current time
time_curr (float) – Current time
assembly (bool) – if True return assembled vector (default: True)
- Returns:
elementary Exchange forces vector
- Return type:
ElementaryVectorThermalReal
- getThermalExchangeMatrix(time_curr)[source]¶
Return the elementary matices for exhange thermal matrix.
- Parameters:
time_curr (float) – Current time
- Returns:
elementary exchange thermal matrices
- Return type:
ElementaryMatrix
- getThermalImposedDualBC(time_curr=0.0, assembly=True)[source]¶
Return the thermal imposed nodal BC elementary vector
- Parameters:
time_curr (float) – Current time (default: 0.0)
assembly (bool) – if True return assembled vector (default: True)
- Returns:
imposed dual vector
- Return type:
ElementaryVectorThermalReal
- getThermalNeumannForces(time_curr=0.0, assembly=True)[source]¶
Return the elementary thermal Neumann forces vector
- Parameters:
time_curr (float) – Current time (default: 0.0)
assembly (bool) – if True return assembled vector (default: True)
- Returns:
elementary Neumann forces vector
- Return type:
ElementaryVectorThermalReal
- getThermalNonLinearNeumannForces(temp_curr, time_curr, assembly=True)[source]¶
Return the elementary field for nonlinear neuamnn forces. Option CHAR_THER_FLUTNL, CHAR_THER_RAYO_F, CHAR_THER_RAYO_R.
- Parameters:
temp_curr (FieldOnNodesReal) – thermal field at end of current time
time_curr (float) – Current time
assembly (bool) – assemble or not the field
- Returns:
elementary field
- Return type:
ElementaryVector
- getThermalNonLinearVolumetricForces(temp_curr, time_curr, assembly=True)[source]¶
Return the elementary field for nonlinear volumetric forces. Option CHAR_THER_SOURNL.
- Parameters:
temp_curr (FieldOnNodesReal) – thermal field at end of current time
time_curr (float) – Current time
assembly (bool) – assemble or not the field
- Returns:
elementary field
- Return type:
ElementaryVector
- getThermalTangentNonLinearNeumannMatrix(temp_curr, time_curr, varc_curr=None)[source]¶
Return the elementary matrices for tangent nonlinear neumann forces. Option MTAN_THER_FLUXNL, MTAN_THER_RAYO_R, MTAN_THER_RAYO_F.
- Parameters:
temp_curr (FieldOnNodesReal) – thermal field at end of current time
time_curr (float) – Current time
varc_curr (FieldOnCellsReal) – external state variables at current time
- Returns:
elementary matrix
- Return type:
ElementaryMatrix
- getThermalTangentNonLinearVolumetricMatrix(temp_curr, time_curr)[source]¶
Return the elementary matrices for tangent nonlinear volumetric forces. Option MTAN_THER_SOURNL.
- Parameters:
temp_curr (FieldOnNodesReal) – thermal field at end of current time
time_curr (float) – Current time
- Returns:
elementary matrix
- Return type:
ElementaryMatrix
- getThermalVolumetricForces(time_curr=0.0, varc_curr=None, assembly=True)[source]¶
Return the elementary thermal Volumetric forces vector
- Parameters:
time_curr (float) – Current time
varc_curr (FieldOnCellsReal) – external state variables at current time
assembly (bool) – if True return assembled vector (default: True)
- Returns:
elementary Volumetric forces vector
- Return type:
ElementaryVectorThermalReal
- getTransientThermalForces(*args, **kwargs)[source]¶
Overloaded function.
getTransientThermalForces(self: libaster.DiscreteComputation, time_curr: float, time_step: float, theta: float, varc_curr: FieldOnNodes<double> = None, previousPrimalField: FieldOnCells<double> = None) -> FieldOnNodes<double>
Compute Transient Thermal Load
- Arguments:
time_curr (float): Current time time_step (float): Time increment theta (float): Theta parameter for integration varc_curr (FieldOnCellsReal): external state variables at current time previousPrimalField (fieldOnNodesReal): solution field at previous time
- Returns:
FieldOnNodes: load
getTransientThermalForces(self: libaster.DiscreteComputation, time_curr: float, time_step: float, theta: float, previousPrimalField: FieldOnNodes<double>, varc_curr: FieldOnCells<double> = None) -> FieldOnNodes<double>
Compute Transient Thermal forces due to time scheme Option CHAR_THER_EVOL
- Arguments:
time_curr (float): Current time time_step (float): Time increment theta (float): Theta parameter for integration previousPrimalField (fieldOnNodesReal): solution field at previous time varc_curr (FieldOnCellsReal): external state variables at current time
- Returns:
FieldOnNodes: load
- getTransientThermalLoadForces(time_curr, temp_prev=None, assembly=True)[source]¶
Compute Transient Thermal Load given by EVOL_CHAR. Option CHAR_THER.
- Parameters:
time_curr (float) – Current time
temp_prev (FieldOnNodesReal) – solution field at previous time
assembly (bool) – if True return assembled vector (default: True)
- Returns:
load
- Return type:
FieldOnNodes
DisplacementReal object¶
EntityType object¶
EvolutionParameter object¶
- class code_aster.Objects.EvolutionParameter(result, fieldName)[source]¶
Bases:
object- setLeftExtension(typeExtension)[source]¶
Set type of the extension to the left of the function to shift the results
- Parameters:
typeExtension (str) – type of extension (‘CONSTANT’, ‘EXCLU’, ‘LINEAIRE’)
- setRightExtension(typeExtension)[source]¶
Set type of the extension to the right of the function to shift the results
- Parameters:
typeExtension (str) – type of extension (‘CONSTANT’, ‘EXCLU’, ‘LINEAIRE’)
- setTimeFunction(*args, **kwargs)[source]¶
Overloaded function.
setTimeFunction(self: libaster.EvolutionParameter, formula: libaster.Formula) -> None
Set function to shift results
- Arguments:
formula (Formula): formula
setTimeFunction(self: libaster.EvolutionParameter, function: libaster.Function) -> None
Set function to shift results
- Arguments:
function (Function): function
ExternalStateVariable object¶
- class code_aster.Objects.ExternalStateVariable(*args, **kwargs)[source]¶
Bases:
object- setEvolutionParameter(evolutionParameter)[source]¶
Define evolution parameters for values of external state variable
- Parameters:
evolutionParameter (EvolutionParameter) – object EvolutionParameter to define
ExternalVariableTraits object¶
FieldCharacteristics object¶
ForceReal object¶
Formulation object¶
FrictionAlgo object¶
FrictionParameter object¶
- class code_aster.Objects.FrictionParameter[source]¶
Bases:
object- getAlgorithm()[source]¶
Return the Friction algorithm used. It is a value of an enum
- Returns:
Friction algorithm.
- Return type:
- getCoefficient()[source]¶
Return the Friction coefficient used. It is a value of a float
- Returns:
Friction coefficient.
- Return type:
float
- getCoulomb()[source]¶
Return the Coulomb coefficient used. It is a value of a float
- Returns:
Coulomb coefficient.
- Return type:
float
- getTresca()[source]¶
Return the Tresca coefficient used. It is a value of a float
- Returns:
Tresca coefficient.
- Return type:
float
- getType()[source]¶
Return the Friction type used. It is a value of an enum
- Returns:
Friction type.
- Return type:
- setAlgorithm(algo)[source]¶
Set the Friction algorithm used. It is a value of an enum
- Parameters:
FrictionAlgo – Friction algorithm.
- setCoefficient(coeff)[source]¶
Set the Friction coefficient used. It is a value of a float
- Parameters:
float – Friction coefficient.
- setCoulomb(coulomb)[source]¶
Set the Coulomb coefficient used. It is a value of a float
- Parameters:
float – Coulomb coefficient.
- setTresca(tresca)[source]¶
Set the Tresca coefficient used. It is a value of a float
- Parameters:
float – Tresca coefficient.
- setType(type)[source]¶
Set the Friction type used. It is a value of an enum
- Parameters:
FrictionType – Friction type.
- property hasFriction¶
enable or disable the use of friction.
- Type:
bool
FrictionType object¶
Glossary object¶
GraphPartitioner object¶
HHO object¶
- class code_aster.Objects.HHO(*args, **kwargs)[source]¶
Bases:
object- evaluateAtQuadraturePoints(hho_field)[source]¶
Evaluate HHO-field at quadrature points
- Parameters:
hho_field (FieldOnNodesReal) – hho field like displacement or thermic
- Returns:
HHO field evaluated at quadrature points (ELGA)
- Return type:
- projectOnHHOCellSpace(*args, **kwargs)[source]¶
Overloaded function.
projectOnHHOCellSpace(self: libaster.HHO, field_elga: libaster.FieldOnCellsReal) -> libaster.FieldOnNodesReal
Project field defined at the quadrature poitns to HHO-cell_space Cell space is the restriction of HHO-space to cells only Face values are setted to zero
- Arguments:
field_elga (FieldOnNodesReal): values of the field at the quadrature poitns
- Returns:
FieldOnNodesReal: HHO field
projectOnHHOCellSpace(self: libaster.HHO, func: libaster.GenericFunction, time: float = 0.0) -> libaster.FieldOnNodesReal
Project real function to HHO Cell-space Cell space is the restriction of HHO-space to cells only Face values are setted to zero
- Arguments:
func (Function): real function to project time (float): time value to evaluate function (default=0.0)
- Returns:
FieldOnNodesReal: HHO field
projectOnHHOCellSpace(self: libaster.HHO, func: list[libaster.GenericFunction], time: float = 0.0) -> libaster.FieldOnNodesReal
Project real function to HHO Cell-space Cell space is the restriction of HHO-space to cells only Face values are setted to zero
- Arguments:
func (Function): real function to project time (float): time value to evaluate function (default=0.0)
- Returns:
FieldOnNodesReal: HHO field
projectOnHHOCellSpace(self: libaster.HHO, value: float) -> libaster.FieldOnNodesReal
Project real value to HHO Cell-space Cell space is the restriction of HHO-space to cells only Face values are setted to zero
- Arguments:
value (float): value to project
- Returns:
FieldOnNodesReal: HHO field
projectOnHHOCellSpace(self: libaster.HHO, value: list[float]) -> libaster.FieldOnNodesReal
Project real value to HHO Cell-space Cell space is the restriction of HHO-space to cells only Face values are setted to zero
- Arguments:
value (float): value to project
- Returns:
FieldOnNodesReal: HHO field
- projectOnHHOSpace(*args, **kwargs)[source]¶
Overloaded function.
projectOnHHOSpace(self: libaster.HHO, H1_field: libaster.FieldOnNodesReal) -> libaster.FieldOnNodesReal
Project field from Lagrange-space to HHO-space
- Arguments:
H1_field (FieldOnNodesReal): Lagrange field
- Returns:
FieldOnNodesReal: HHO field
projectOnHHOSpace(self: libaster.HHO, func: libaster.GenericFunction, time: float = 0.0) -> libaster.FieldOnNodesReal
Project real function to HHO-space
- Arguments:
func (Function): real function to project time (float): time value to evaluate function (default=0.0)
- Returns:
FieldOnNodesReal: HHO field
projectOnHHOSpace(self: libaster.HHO, func: list[libaster.GenericFunction], time: float = 0.0) -> libaster.FieldOnNodesReal
Project real function to HHO-space
- Arguments:
func (Function): real function to project time (float): time value to evaluate function (default=0.0)
- Returns:
FieldOnNodesReal: HHO field
projectOnHHOSpace(self: libaster.HHO, value: float) -> libaster.FieldOnNodesReal
Project real value to HHO-space
- Arguments:
value (float): value to project
- Returns:
FieldOnNodesReal: HHO field
projectOnHHOSpace(self: libaster.HHO, value: list[float]) -> libaster.FieldOnNodesReal
Project real value to HHO-space
- Arguments:
value (float): value to project
- Returns:
FieldOnNodesReal: HHO field
- projectOnLagrangeSpace(hho_field, groupOfCells=[], average=True)[source]¶
Project field from HHO-space to Lagrange-space
- Parameters:
hho_field (FieldOnNodesReal) – hho field like displacement or thermic
groupOfCells (list[str]) – groups where to compute
average (bool) – average or not the field at nodes.
- Returns:
HHO field project on Lagrange space
- Return type:
- static_condensation(matr_elem, vect_elem)[source]¶
Performs static condensation.
- Parameters:
matr_elem (ElementaryMatrixDisplacementReal) – elementary (symetric) matrix.
vect_elem (ElementaryVectorDisplacementReal) – elementary vector.
- Returns:
[ [AssemblyMatrixDisplacementReal, FieldOnNodesReal], [AssemblyMatrixDisplacementReal, FieldOnNodesReal] ]: return two pairs of a matrix and a rhs. First pair is the condensated system to solve. Second pair is used for static decondensation.
- static_decondensation(mD, lD, uF)[source]¶
Performs static decondensation. Update cell DoFs.
- Parameters:
mD (AssemblyMatrixDisplacementReal) – matrix of decondensation.
lD (FieldOnNodesReal) – rhs of decondensation.
uF (FieldOnNodesReal) – solution computed after condensation.
- Returns:
solution after decondensation.
- Return type:
HeatFluxReal object¶
HydraulicFluxReal object¶
ImpedanceReal object¶
InitialState object¶
IntegrationType object¶
InterfaceType object¶
JacobianType object¶
Loads object¶
LocalBeamForceReal object¶
LocalShellForceReal object¶
MedFamily object¶
MedField object¶
- class code_aster.Objects.MedField(*args, **kwargs)[source]¶
Bases:
object- getAllSupportEntitiesAtSequence(numdt, numit)[source]¶
Get list of all entity type and geometric type in calculation sequence
- Parameters:
numdt (int) – time step id
numit (int) – iteration id
- Returns:
list of pair of entity type and geometry type
- Return type:
list
- getProfileNumberAtSequenceOnEntity(arg0, arg1, arg2, arg3)[source]¶
Get profile number in calculation sequence for a given entity and geometric type
- getSequence(arg0)[source]¶
Get time step id and iteration id for a given sequence id
- Returns:
time step id and iteration id
- Return type:
list
- getValuesAtSequenceOnCellTypesList(numdt, numit, geomtyp)[source]¶
Get cell field values at calculation sequence from geometric type list
- Parameters:
numdt (int) – time step id
numit (int) – iteration id
geomtyp (list) – list of geomtric types
- Returns:
values on cells (same sort as list of geomtric types)
- Return type:
list
- getValuesAtSequenceOnEntityAndProfile(numdt, numit, entity, geometry, iterator)[source]¶
Get field values
- Parameters:
numdt (int) – time step id
numit (int) – iteration id
entity (int) – entity type
geometry (int) – geometric type
iterator (int) – iterator on profile
- Returns:
values
- Return type:
list
MedFileAccessType object¶
MedFileReader object¶
- class code_aster.Objects.MedFileReader[source]¶
Bases:
object- createMesh(name, dim, desc)[source]¶
Create new mesh in file
- Parameters:
name (str) – mesh name (length: 64)
dim (int) – mesh dimension
desc (str) – mesh description (length: 200)
- Returns:
return new med mesh object
- Return type:
- getField(*args, **kwargs)[source]¶
Overloaded function.
getField(self: libaster.MedFileReader, name: str) -> MedField
Get field from name
- Parameters:
name (str) – field name
- Returns:
med field of name name
- Return type:
getField(self: libaster.MedFileReader, iterator: int) -> MedField
Get field from iterator
- Parameters:
iterator (int) – field iterator
- Returns:
med field
- Return type:
- getMesh(iterator)[source]¶
Get mesh from iterator
- Parameters:
iterator (int) – iterator on mesh
- Returns:
med mesh
- Return type:
- open(path, accessType, version=[0, 0, 0])[source]¶
Open med file
- Parameters:
path (Path|str) – path to med file
accessType (MedFileAccessType) – med access type
version (list) – list of size 3 ([major, minor, release])
- Returns:
return code (0 if open is ok)
- Return type:
int
- openParallel(path, accessType)[source]¶
Open med file in parallel
- Parameters:
path (Path|str) – path to med file
accessType (MedFileAccessType) – med access type
- Returns:
return code (0 if open is ok)
- Return type:
int
MedMesh object¶
- class code_aster.Objects.MedMesh(*args, **kwargs)[source]¶
Bases:
object- addFamily(name, num, grps)[source]¶
Add family to mesh
- Parameters:
name (str) – family name
num (int) – family id
grps (list) – group list
- getCellFamilyAtSequence(numdt, numit, type_iterator)[source]¶
Get cell family in calculation sequence for given profile
- Parameters:
numdt (int) – time step id
numit (int) – iteration id
profile_iterator (int) – iterator on profile
- Returns:
family id for cells
- Return type:
list
- getCellFamilyForGeometricTypeAtSequence(numdt, numit, geom_type)[source]¶
Get cell family for calculation sequence and geometric type
- Parameters:
numdt (int) – time step id
numit (int) – iteration id
geom_type (int) – geomtric type
- Returns:
family id for cells
- Return type:
list
- getCellNumberAtSequence(numdt, numit, geomtype_iterator)[source]¶
Get cell number for calculation sequence and geometric type iterator
- Parameters:
numdt (int) – time step id
numit (int) – iteration id
geomtype_iterator (int) – iterator on geometric type
- Returns:
cell number
- Return type:
int
- getCellNumberForGeometricTypeAtSequence(numdt, numit, geomtype)[source]¶
Get cell number for calculation sequence and geometric type
- Parameters:
numdt (int) – time step id
numit (int) – iteration id
geomtype (int) – geometric type
- Returns:
cell number
- Return type:
int
- getCellTypeAtSequence(numdt, numit, geomtype_iterator)[source]¶
Get cell geometric type for calculation sequence and geomtype_iterator
- Parameters:
numdt (int) – time step id
numit (int) – iteration id
geomtype_iterator (int) – iterator on geometric type
- Returns:
geometric type
- Return type:
int
- getCellTypeNumberAtSequence(numdt, numit)[source]¶
Get cell type number for calculation sequence
- Parameters:
numdt (int) – time step id
numit (int) – iteration id
- Returns:
cell type number
- Return type:
int
- getConnectivityAtSequence(numdt, numit, geomtype_iterator)[source]¶
Get cell connectivity for calculation sequence and geometric type iterator
- Parameters:
numdt (int) – time step id
numit (int) – iteration id
geomtype_iterator (int) – iterator on geometric type
- Returns:
cell connectivity
- Return type:
list
- getConnectivityForGeometricTypeAtSequence(numdt, numit, geomtype)[source]¶
Get cell connectivity for calculation sequence and geometric type
- Parameters:
numdt (int) – time step id
numit (int) – iteration id
geomtype (int) – geometric type
- Returns:
cell connectivity
- Return type:
list
- getGeometricTypesAtSequence(numdt, numit)[source]¶
Get all cell geometric types
- Parameters:
numdt (int) – time step id
numit (int) – iteration id
- Returns:
cell geometric type list
- Return type:
list
- getNodeFamilyAtSequence(numdt, numit)[source]¶
Get node families for calculation sequence
- Parameters:
numdt (int) – time step id
numit (int) – iteration id
- Returns:
node families
- Return type:
list
- getNodeNumberAtSequence(numdt, numit)[source]¶
Get node number for calculation sequence
- Parameters:
numdt (int) – time step id
numit (int) – iteration id
- Returns:
node number
- Return type:
int
- getNodeNumberForGeometricType(geotype)[source]¶
Get node number from a geometric type
- Parameters:
geotype (int) – geometric type
- Returns:
node number
- Return type:
int
MedToAsterReader object¶
- class code_aster.Objects.MedToAsterReader[source]¶
Bases:
object- readIncompleteMeshFromMedFile(mesh, path, mesh_name='', verbosity=0)[source]¶
Open med file
- Parameters:
IncompleteMesh – return mesh to fill
path (Path|str) – path to med file
mesh_name (str) – mesh name (optional)
verbosity (int) – verbosity (optional)
MedVector object¶
- class code_aster.Objects.MedVector(*args, **kwargs)[source]¶
Bases:
object- getCumulatedSizesVector()[source]¶
Get cumulated sizes vector
- Returns:
Cumulated sizes for each element
- Return type:
list
MeshBalancer object¶
- class code_aster.Objects.MeshBalancer[source]¶
Bases:
object- applyBalancingStrategy(vector, out_mesh=None, ghost_layer=1)[source]¶
Apply balancing strategy to given mesh. User must give nodes that local process will own (without ghost nodes). This function returns a ParallelMesh with joints, ghosts and so on.
- Parameters:
vector – list of nodes to get on local process
outMesh – out mesh (optional)
ghost_layer – ghost layer size (optional)
- Returns:
ParallelMesh
- Return type:
mesh
- buildFromBaseMesh(mesh)[source]¶
Build balancer on an IncompleteMesh or a Mesh
- Parameters:
mesh – mesh to balance
MeshConnectionGraph object¶
- class code_aster.Objects.MeshConnectionGraph[source]¶
Bases:
object- buildFromIncompleteMesh(mesh)[source]¶
Create the graph corresponding to given IncompleteMesh to be used by PtScotchPartitioner
- Parameters:
mesh – IncompleteMesh.
MeshEntity object¶
- class code_aster.Objects.AllMeshEntities(*args, **kwargs)[source]¶
Bases:
MeshEntity
ModelSplitingMethod object¶
Modelings object¶
Node object¶
NormalSpeedReal object¶
ObjectBalancer object¶
- class code_aster.Objects.ObjectBalancer[source]¶
Bases:
object- addElementarySend(rank, elemList)[source]¶
Add an elementary send (part of a vector to send to given process)
- Parameters:
rank – rank of process
elemList – list of elements to send to the process
- balanceMedVectorOverProcessesWithRenumbering(vector)[source]¶
Balance a med vector of reals over processes
- Parameters:
vector – list of reals to balance
- Returns:
balanced med vector
- Return type:
MedVector[real]
- balanceVectorOverProcesses(*args, **kwargs)[source]¶
Overloaded function.
balanceVectorOverProcesses(self: libaster.ObjectBalancer, vector: list[float]) -> list[float]
Balance a vector of reals over processes
- Parameters:
vector – list of reals to balance
- Returns:
balanced vector
- Return type:
list[real]
balanceVectorOverProcesses(self: libaster.ObjectBalancer, vector: list[int]) -> list[int]
Balance a vector of integers over processes
- Parameters:
vector – list of integers to balance
- Returns:
balanced vector
- Return type:
list[int]
PairingAlgo object¶
PairingMethod object¶
PairingParameter object¶
- class code_aster.Objects.PairingParameter[source]¶
Bases:
object- getAlgorithm()[source]¶
Return the Pairing algorithm used. It is a value of an enum
- Returns:
Pairing algorithm.
- Return type:
- getAreaIntersectionTolerance()[source]¶
Return the tolerance used for the intersection area criterium. It is a value of a float
- Returns:
area intersection tolerance.
- Return type:
float
- getDistanceFunction()[source]¶
Return the fictive distance function. It is a value of a pointer
- Returns:
FunctionPtr/ FormulaPtr/ Function2DPtr.
- Return type:
- getDistanceRatio()[source]¶
Return the pairing distance ratio used. It is a value of a float
- Returns:
pairing distance.
- Return type:
float
- getElementaryCharacteristics()[source]¶
Return the elementary characteristics. It is a value of a pointer
- Returns:
cara_elel pointer.
- Return type:
ElementaryCharacteristicsPtr
- getInitialState()[source]¶
Return the initial contact state. It is a value of an enum
- Returns:
Initial contact state.
- Return type:
- getPairingMethod()[source]¶
Return the pairing method used. It is a value of an enum
- Returns:
pairing method.
- Return type:
- getPairingTolerance()[source]¶
Return the pairing tolerance used. It is a value of a float
- Returns:
pairing tolerance.
- Return type:
float
- setAlgorithm(algo)[source]¶
Set the Pairing algorithm used. It is a value of an enum
- Parameters:
PairingAlgo – Pairing algorithm.
- setAreaIntersectionTolerance(area_tole)[source]¶
Return the tolerance used for the intersection area criterium. It is a value of a float
- Parameters:
float – area intersection tolerance.
- setDistanceFunction(dist_supp)[source]¶
Set the fictive distance function. It is a value of a pointer
- Parameters:
GenericFunction – FunctionPtr/ FormulaPtr/ Function2DPtr.
- setDistanceRatio(dist_ratio)[source]¶
Set the pairing distance ratio used. It is a value of a float
- Parameters:
float – pairing distance ratio.
- setElementaryCharacteristics(cara)[source]¶
Set the elementary characteristics. It is a value of a pointer
- Parameters:
ElementaryCharacteristicsPtr – cara_elel pointer.
- setInitialState(cont_init)[source]¶
Set the initial contact state. It is a value of an enum
- Parameters:
InitialState – Initial contact state.
- setPairingMethod(pair_method)[source]¶
Set the cpairing method used. It is a value of an enum
- Parameters:
PairingMethod – pairing method.
- setPairingTolerance(pair_tole)[source]¶
Set the pairing tolerance used. It is a value of a float
- Parameters:
float – pairing tolerance.
- property hasBeamDistance¶
enable or disable the use of a fictive distance for beam.
- Type:
bool
- property hasShellDistance¶
enable or disable the use of a fictive distance for shell.
- Type:
bool
ParMetisPartitioner object¶
PartOfMaterialField object¶
PhysicalProblem object¶
- class code_aster.Objects.PhysicalProblem(*args, **kwargs)[source]¶
Bases:
object- addDirichletBC(*args, **kwargs)[source]¶
Overloaded function.
addDirichletBC(self: libaster.PhysicalProblem, arg0: libaster.DirichletBC) -> None
addDirichletBC(self: libaster.PhysicalProblem, arg0: libaster.DirichletBC, arg1: libaster.Function, arg2: str) -> None
addDirichletBC(self: libaster.PhysicalProblem, arg0: libaster.DirichletBC, arg1: libaster.Formula, arg2: str) -> None
addDirichletBC(self: libaster.PhysicalProblem, arg0: libaster.DirichletBC, arg1: libaster.Function2D, arg2: str) -> None
addDirichletBC(self: libaster.PhysicalProblem, arg0: libaster.DirichletBC, arg1: str) -> None
- addLoad(*args, **kwargs)[source]¶
Overloaded function.
addLoad(self: libaster.PhysicalProblem, arg0: libaster.MechanicalLoadReal) -> None
addLoad(self: libaster.PhysicalProblem, arg0: libaster.MechanicalLoadFunction) -> None
addLoad(self: libaster.PhysicalProblem, arg0: libaster.MechanicalLoadReal, arg1: str) -> None
addLoad(self: libaster.PhysicalProblem, arg0: libaster.MechanicalLoadReal, arg1: libaster.Function, arg2: str) -> None
addLoad(self: libaster.PhysicalProblem, arg0: libaster.MechanicalLoadReal, arg1: libaster.Formula, arg2: str) -> None
addLoad(self: libaster.PhysicalProblem, arg0: libaster.MechanicalLoadReal, arg1: libaster.Function2D, arg2: str) -> None
addLoad(self: libaster.PhysicalProblem, arg0: libaster.MechanicalLoadFunction, arg1: str) -> None
addLoad(self: libaster.PhysicalProblem, arg0: libaster.MechanicalLoadFunction, arg1: libaster.Function, arg2: str) -> None
addLoad(self: libaster.PhysicalProblem, arg0: libaster.MechanicalLoadFunction, arg1: libaster.Formula, arg2: str) -> None
addLoad(self: libaster.PhysicalProblem, arg0: libaster.MechanicalLoadFunction, arg1: libaster.Function2D, arg2: str) -> None
addLoad(self: libaster.PhysicalProblem, arg0: libaster.MechanicalLoadComplex) -> None
addLoad(self: libaster.PhysicalProblem, arg0: libaster.MechanicalLoadComplex, arg1: libaster.Function) -> None
addLoad(self: libaster.PhysicalProblem, arg0: libaster.MechanicalLoadComplex, arg1: libaster.Formula) -> None
addLoad(self: libaster.PhysicalProblem, arg0: libaster.MechanicalLoadComplex, arg1: libaster.Function2D) -> None
addLoad(self: libaster.PhysicalProblem, arg0: ParallelMechanicalLoad<ConstantFieldOnCells<double> >) -> None
addLoad(self: libaster.PhysicalProblem, arg0: ParallelMechanicalLoad<ConstantFieldOnCells<double> >, arg1: str) -> None
addLoad(self: libaster.PhysicalProblem, arg0: ParallelMechanicalLoad<ConstantFieldOnCells<double> >, arg1: libaster.Function, arg2: str) -> None
addLoad(self: libaster.PhysicalProblem, arg0: ParallelMechanicalLoad<ConstantFieldOnCells<double> >, arg1: libaster.Formula, arg2: str) -> None
addLoad(self: libaster.PhysicalProblem, arg0: ParallelMechanicalLoad<ConstantFieldOnCells<double> >, arg1: libaster.Function2D, arg2: str) -> None
addLoad(self: libaster.PhysicalProblem, arg0: ParallelMechanicalLoad<ConstantFieldOnCells<JeveuxString<24> > >, arg1: str) -> None
addLoad(self: libaster.PhysicalProblem, arg0: ParallelMechanicalLoad<ConstantFieldOnCells<JeveuxString<24> > >, arg1: libaster.Function, arg2: str) -> None
addLoad(self: libaster.PhysicalProblem, arg0: ParallelMechanicalLoad<ConstantFieldOnCells<JeveuxString<24> > >, arg1: libaster.Formula, arg2: str) -> None
addLoad(self: libaster.PhysicalProblem, arg0: ParallelMechanicalLoad<ConstantFieldOnCells<JeveuxString<24> > >, arg1: libaster.Function2D, arg2: str) -> None
addLoad(self: libaster.PhysicalProblem, arg0: ParallelThermalLoad<ConstantFieldOnCells<double> >) -> None
addLoad(self: libaster.PhysicalProblem, arg0: ParallelThermalLoad<ConstantFieldOnCells<double> >, arg1: libaster.Function) -> None
addLoad(self: libaster.PhysicalProblem, arg0: ParallelThermalLoad<ConstantFieldOnCells<double> >, arg1: libaster.Formula) -> None
addLoad(self: libaster.PhysicalProblem, arg0: ParallelThermalLoad<ConstantFieldOnCells<double> >, arg1: libaster.Function2D) -> None
addLoad(self: libaster.PhysicalProblem, arg0: ParallelThermalLoad<ConstantFieldOnCells<JeveuxString<24> > >) -> None
addLoad(self: libaster.PhysicalProblem, arg0: ParallelThermalLoad<ConstantFieldOnCells<JeveuxString<24> > >, arg1: libaster.Function) -> None
addLoad(self: libaster.PhysicalProblem, arg0: ParallelThermalLoad<ConstantFieldOnCells<JeveuxString<24> > >, arg1: libaster.Formula) -> None
addLoad(self: libaster.PhysicalProblem, arg0: ParallelThermalLoad<ConstantFieldOnCells<JeveuxString<24> > >, arg1: libaster.Function2D) -> None
addLoad(self: libaster.PhysicalProblem, arg0: libaster.ThermalLoadReal) -> None
addLoad(self: libaster.PhysicalProblem, arg0: libaster.ThermalLoadReal, arg1: libaster.Function) -> None
addLoad(self: libaster.PhysicalProblem, arg0: libaster.ThermalLoadReal, arg1: libaster.Formula) -> None
addLoad(self: libaster.PhysicalProblem, arg0: libaster.ThermalLoadReal, arg1: libaster.Function2D) -> None
addLoad(self: libaster.PhysicalProblem, arg0: libaster.ThermalLoadFunction) -> None
addLoad(self: libaster.PhysicalProblem, arg0: libaster.ThermalLoadFunction, arg1: libaster.Function) -> None
addLoad(self: libaster.PhysicalProblem, arg0: libaster.ThermalLoadFunction, arg1: libaster.Formula) -> None
addLoad(self: libaster.PhysicalProblem, arg0: libaster.ThermalLoadFunction, arg1: libaster.Function2D) -> None
addLoad(self: libaster.PhysicalProblem, arg0: libaster.AcousticLoadComplex) -> None
addLoad(self: libaster.PhysicalProblem, arg0: libaster.AcousticLoadComplex, arg1: libaster.Function) -> None
addLoad(self: libaster.PhysicalProblem, arg0: libaster.AcousticLoadComplex, arg1: libaster.Formula) -> None
addLoad(self: libaster.PhysicalProblem, arg0: libaster.AcousticLoadComplex, arg1: libaster.Function2D) -> None
- computeBehaviourProperty(COMPORTEMENT, SIGM_INIT='NON', INFO=1)[source]¶
Create constant fields on cells for behaviour (COMPOR, CARCRI and MULCOM)
- Parameters:
COMPORTEMENT (list[dict]) – keywords as provided to STAT_NON_LINE/COMPORTEMENT
SIGM_INIT (str) – “OUI” if there is an initial stress field
INFO (int) – level of verbosity, 1 to have description of behaviour or 0 to be quiet
- computeDOFNumbering()[source]¶
Build DOF numbering from the model and loads
- Returns:
True if success
- Return type:
Bool
- computeListOfLoads(command_name='')[source]¶
Build the list of loads from the added loads
- Parameters:
command_name (str) – It is possible to add a command name to add more checking (default: “”)
- Returns:
True if success
- Return type:
Bool
- computeReferenceExternalStateVariables()[source]¶
Compute field for external state variables reference value
- Returns:
field for external state variables reference values
- Return type:
FieldOnCells
- getBehaviourProperty()[source]¶
Return the behaviour properties
- Returns:
a pointer to the behaviour properties
- Return type:
- getCodedMaterial()[source]¶
Return the coded material
- Returns:
a pointer to the coded material
- Return type:
- getDOFNumbering()[source]¶
Return the DOF numbering
- Returns:
a pointer to the DOF numbering
- Return type:
- getDirichletBCDOFs()[source]¶
Return a vector with DOFs eliminated by Dirichlet boundaries conditions (if it exists)
- Returns:
- a vector with DOFs eliminated by Dirichlet boundaries conditions of
size = neq + 1, tuple(ieq = 0, neq - 1) = 1 then DOF eliminated else 0, tuple(neq) = number of DOFs eliminated.
- Return type:
tuple(int)
- getElementaryCharacteristics()[source]¶
Return the elementary charateristics
- Returns:
a pointer to the elementary charateristics
- Return type:
- getExternalStateVariables(time)[source]¶
Get the field for external state variables
- Parameters:
[float] (time) – time value to evaluate values
- Returns:
external values
- Return type:
- getMaterialField()[source]¶
Return the material field
- Returns:
a pointer to the material field
- Return type:
- getReferenceExternalStateVariables()[source]¶
Get the field of reference values for external state variables
- Returns:
field of reference values
- Return type:
- isAcoustic()[source]¶
To know if the probleme is acoustic or not
- Returns:
True - if the model is acoustic
- Return type:
bool
- isMechanical()[source]¶
To know if the problem is mechanical or not
- Returns:
True - if the model is mechanical
- Return type:
bool
- isThermal()[source]¶
To know if the problem is thermal or not
- Returns:
True - if the model is thermal
- Return type:
bool
- setContactFED(virtualCell)[source]¶
Set virtual cells from contact pairing
- Parameters:
virtualCell (FiniteElementDescriptor)) – a pointer to the FED
- setContactSlaveFED(contact)[source]¶
Set virtual cells from contact definition
- Parameters:
virtualCell (FiniteElementDescriptor)) – a pointer to the FED
- setDOFNumbering(dofNum)[source]¶
Set the DOF numbering
- Parameters:
dofNum (BaseDOFNumbering) – a pointer to the DOF numbering
- setListOfLoads(loads)[source]¶
Set list of loads
- Parameters:
loads (ListOfLoads) – a pointer to the list of loads
PhysicalQuantityComponent object¶
PhysicalQuantityManager object¶
PhysicalSolutionRestitutor object¶
- class code_aster.Objects.PhysicalSolutionRestitutor(*args, **kwargs)[source]¶
Bases:
object- computeMaxForFieldsOnCells()[source]¶
Compute the time-maximum of all modal fields defined on cells.
Similar to computeMaxForFieldsOnNodes, but applied to cell-based fields. Each entry in the returned dictionary corresponds to a field name and its cell field containing maximum values over the transient duration.
- Returns:
Mapping between field names and their corresponding cell fields containing the maximum values over time.
- Return type:
dict[str, FieldOnCellsReal]
- computeMaxForFieldsOnNodes()[source]¶
Compute the time-maximum of all modal fields defined on nodes.
This function processes all nodal fields associated with the transient result and returns the maximum (component-wise or field-wise) observed over time for each field.
- Returns:
Mapping between field names and their corresponding nodal fields containing the maximum values over time.
- Return type:
dict[str, FieldOnNodesReal]
- get_acceleration_coeffs()[source]¶
Return the generalized acceleration coefficients.
These coefficients represent the modal acceleration amplitudes used to reconstruct physical acceleration fields.
- Returns:
Reference to the vector of acceleration coefficients (no copy).
- Return type:
list[float]
Physics object¶
PostProcessing object¶
- class code_aster.Objects.PostProcessing(arg0)[source]¶
Bases:
object- computeAnnealing(internVar, time_prev, time_curr, externVarPrev, externVarCurr)[source]¶
Modification of internal state variables for annealing
- Parameters:
internVar (FieldOnNodesReal) – internal state variables before annealing
time_prev (float) – time at begin of the step
time_curr (float) – time at end of the step
externVarPrev (FieldOnCellsReal) – external state variables at previous time
externVarCurr (FieldOnCellsReal) – external state variables at current time
- Returns:
internal state variables after annealing
- Return type:
FieldOnCellReals
- computeHydration(temp_prev, temp_curr, time_prev, time_curr, hydr_prev)[source]¶
Compute hydration at quadrature points (HYDR_ELGA)
- Parameters:
temp_prev (FieldOnNodesReal) – temperature field at begin of current time step
temp_curr (FieldOnNodesReal) – temperature field at end of current time step
time_prev (float) – time at begin of the step
time_curr (float) – time at end of the step
hydr_prev (FieldOnCellReals) – hydration field at begin of current time step
- Returns:
hydration field at end of current time step
- Return type:
FieldOnCellReals
- computeMaxResultantForPipe(result, field_name)[source]¶
Computes the maximum of the EFGE_ELNO or EGRU_ELNO field in absolute value, based on the maximal values of the equivalent moment at each element.
- Parameters:
result (Result) – ResultPtr The result object containing the fields
field_name (str) – It should be ‘EFGE_ELNO’ or ‘EGRU_ELNO’
- Returns:
The maximal value of the field
- Return type:
FieldOnCellReals
- computeStress(displ, time=0.0, externVar=None, strx_elga=None)[source]¶
Compute stress SIEF_ELGA
- Parameters:
displ (FieldOnNodesReal) – displacement
time (float) – time
externVar (FieldOnCellsReal) – external state variables
strx_elga (FieldOnCellsReal) – STRX_ELGA field
- Returns:
stress SIEF_ELGA field
- Return type:
FieldOnCellReals
- computeStructuralStress(displ, time=0.0, externVar=None)[source]¶
Compute stress STRX_ELGA
- Parameters:
displ (FieldOnNodesReal) – displacement
time (float) – time
externVar (FieldOnCellsReal) – external state variables
- Returns:
stress STRX_ELGA field
- Return type:
FieldOnCellReals
PressureReal object¶
PtScotchPartitioner object¶
- class code_aster.Objects.PtScotchPartitioner[source]¶
Bases:
object- buildGraph(*args, **kwargs)[source]¶
Overloaded function.
buildGraph(self: libaster.PtScotchPartitioner, vertices: list[int], edges: list[int], weights: list[int] = []) -> int
Build the PtScotch graph from 2 integer vectors (PtScotch format)
- Arguments:
vertices (list[int]): Gives the position of starts of each vertex connections in edgeloctab edges (list[int]): Describes vertex connections (at which vertices each vertex is connected) weights (list[int], optional): Vertex weights
buildGraph(self: libaster.PtScotchPartitioner, meshConnectionGraph: MeshConnectionGraph, nodesToGather: list[list[int]] = []) -> int
Build the PtScotch graph from a MeshConnectionGraph
- Parameters:
meshConnectionGraph – MeshConnectionGraph
nodesToGather – list of list of nodes to be gather on same MPI processor
PythonBool object¶
ResultManager object¶
ResultNaming object¶
StructuralForceReal object¶
SyntaxSaver object¶
externVarEnumInt object¶
Exception object¶
- class code_aster.Objects.ContactError[source]¶
Bases:
AsterError
- class code_aster.Objects.ConvergenceError[source]¶
Bases:
AsterError
- class code_aster.Objects.IntegrationError[source]¶
Bases:
AsterError
- class code_aster.Objects.SolverError[source]¶
Bases:
AsterError
- class code_aster.Objects.TimeLimitError[source]¶
Bases:
AsterError