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.

  1. 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)

  1. 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)

  1. 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)

printResult(result, path, parallelPrint=False)[source]

Print result to med file

Parameters:
  • result – result to print

  • path (Path|str) – path to med file

  • parallelPrint (bool) – false by default. If true print in one parallel file (optional)

CodedMaterial object

class code_aster.Objects.CodedMaterial(*args, **kwargs)[source]

Bases: object

CommGraph object

class code_aster.Objects.CommGraph[source]

Bases: object

addCommunication(rank)[source]

Add a communication with a process

Parameters:

rank – rank of opposite process

getMatchings()[source]

Get matchings of communication graph

Returns:

list of process to communicate with

Return type:

list[int]

synchronizeOverProcesses()[source]

Synchronise graph over processes

ConstantFieldValuesReal object

class code_aster.Objects.ConstantFieldValuesReal(*args, **kwargs)[source]

Bases: object

getValues()[source]

Return the field values

Returns:

List of values

Return type:

list[float]

ContactAlgo object

class code_aster.Objects.ContactAlgo(value)[source]

Bases: object

Enumeration for contact algorithm.

property name

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:

FieldOnCellsReal

getVerbosity()[source]

Get level of verbosity 0- without 1- normal 2- detailled

Returns:

level of verbosity

Return type:

int

setVerbosity(level)[source]

Set level of verbosity 0- without 1- normal (default) 2- detailled

Parameters:

level (int) – level of verbosity

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:

ContactAlgo

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:

IntegrationType

getJacobianType()[source]

Return how the Jacobian is computed. It is a value of an enum

Returns:

Jacobian type.

Return type:

JacobianType

getType()[source]

Return the contact type used. It is a value of an enum

Returns:

contact type.

Return type:

ContactType

getVariant()[source]

Return the contact variant used. It is a value of an enum

Returns:

contact variant.

Return type:

ContactVariant

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.

setType(type)[source]

Set the contact type used. It is a value of an enum

Parameters:

ContactType – contact type.

setVariant(variant)[source]

Set the contact variant used. It is a value of an enum

Parameters:

ContactVariant – contact variant.

ContactType object

class code_aster.Objects.ContactType(value)[source]

Bases: object

Enumeration for contact type.

property name

ContactVariant object

class code_aster.Objects.ContactVariant(value)[source]

Bases: object

Enumeration for contact variant.

property name

CoordinatesSpace object

class code_aster.Objects.CoordinatesSpace(value)[source]

Bases: object

Type of coordinates: Slave or Global.

property name

CouplingMethod object

class code_aster.Objects.CouplingMethod(value)[source]

Bases: object

Enumeration for coupling method.

property name

CrackShape object

class code_aster.Objects.CrackShape[source]

Bases: 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:

FieldOnNodesComplex

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:

ElementaryVectorPressureComplex

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:

ElementaryVectorPressureComplex

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:

ElementaryVectorPressureComplex

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:

FieldOnNodesReal

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:

ElementaryMatrixDisplacementReal

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:

FieldOnNodesReal

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:

ElementaryMatrixDisplacementReal

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:

FieldOnNodesReal

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:

FieldOnNodesReal

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:

ElementaryVectorDisplacementReal

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:

ElementaryMatrixDisplacementReal

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:

ElementaryVectorDisplacementReal

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:

ElementaryVectorDisplacementReal

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:

FieldOnNodesReal

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:

ElementaryVectorDisplacementReal

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

getPhysicalProblem()[source]

Get physical probelm

Returns:

physical problem

Return type:

PhysicalProblem

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:

FieldOnNodesReal

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:

FieldOnNodesReal

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.

  1. 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

  2. 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

class code_aster.Objects.DisplacementReal[source]

Bases: object

EntityType object

class code_aster.Objects.EntityType(value)[source]

Bases: object

Enumeration for entity type.

property name

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.

  1. setTimeFunction(self: libaster.EvolutionParameter, formula: libaster.Formula) -> None

    Set function to shift results

    Arguments:

    formula (Formula): formula

  2. 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

getField()[source]

Get the field of values

getTransientResult()[source]

Get the transient result

setEvolutionParameter(evolutionParameter)[source]

Define evolution parameters for values of external state variable

Parameters:

evolutionParameter (EvolutionParameter) – object EvolutionParameter to define

setField(field)[source]

Define constant value in time for external state variable

Parameters:

field (field) – field to define value

setReferenceValue(value)[source]

Set reference value for external state variable

Parameters:

value (float) – reference value

ExternalVariableTraits object

class code_aster.Objects.ExternalVariableTraits(*args, **kwargs)[source]

Bases: object

FieldCharacteristics object

class code_aster.Objects.FieldCharacteristics(arg0)[source]

Bases: object

ForceReal object

class code_aster.Objects.ForceReal[source]

Bases: object

Formulation object

class code_aster.Objects.Formulation(value)[source]

Bases: object

Enumeration of formulation.

property name

FrictionAlgo object

class code_aster.Objects.FrictionAlgo(value)[source]

Bases: object

Enumeration for friction algorithm.

property name

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:

FrictionAlgo

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:

FrictionType

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

class code_aster.Objects.FrictionType(value)[source]

Bases: object

Enumeration for friction type.

property name

Glossary object

class code_aster.Objects.Glossary(*args, **kwargs)[source]

Bases: object

GraphPartitioner object

class code_aster.Objects.GraphPartitioner(value)[source]

Bases: object

Enumeration for graph partitionner.

property name

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:

FieldOnCellsReal

getModel()[source]

Get Model.

Returns:

model used for HHO.

Return type:

Model

projectOnHHOCellSpace(*args, **kwargs)[source]

Overloaded function.

  1. 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

  2. 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

  3. 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

  4. 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

  5. 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.

  1. 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

  2. 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

  3. 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

  4. projectOnHHOSpace(self: libaster.HHO, value: float) -> libaster.FieldOnNodesReal

    Project real value to HHO-space

    Arguments:

    value (float): value to project

    Returns:

    FieldOnNodesReal: HHO field

  5. 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:

FieldOnNodesReal

static_condensation(matr_elem, vect_elem)[source]

Performs static condensation.

Parameters:
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:
Returns:

solution after decondensation.

Return type:

FieldOnNodesReal

HeatFluxReal object

class code_aster.Objects.HeatFluxReal[source]

Bases: object

HydraulicFluxReal object

class code_aster.Objects.HydraulicFluxReal[source]

Bases: object

ImpedanceReal object

class code_aster.Objects.ImpedanceReal[source]

Bases: object

InitialState object

class code_aster.Objects.InitialState(value)[source]

Bases: object

Enumeration for initial state.

property name

IntegrationType object

class code_aster.Objects.IntegrationType(value)[source]

Bases: object

Enumeration for integration type.

property name

InterfaceType object

class code_aster.Objects.InterfaceType(value)[source]

Bases: object

Enumeration of interface type.

property name

JacobianType object

class code_aster.Objects.JacobianType(value)[source]

Bases: object

Enumeration for jacobian type.

property name

Loads object

class code_aster.Objects.Loads(value)[source]

Bases: object

Enumeration for type of load.

property name

LocalBeamForceReal object

class code_aster.Objects.LocalBeamForceReal[source]

Bases: object

LocalShellForceReal object

class code_aster.Objects.LocalShellForceReal[source]

Bases: object

MedFamily object

class code_aster.Objects.MedFamily(*args, **kwargs)[source]

Bases: object

getGroups()[source]

Get list of groups in family

getId()[source]

Get family med id

getName()[source]

Get family name

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

getComponentName()[source]

Get field component name

getComponentNumber()[source]

Get field component number

getName()[source]

Get field name

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

getSequenceNumber()[source]

Get calculation sequence number

getTime(arg0)[source]

Get time for a given sequence id

Returns:

time

Return type:

float

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

getValuesAtSequenceOnNodes(numdt, numit)[source]

Get node field values at calculation sequence

Parameters:
  • numdt (int) – time step id

  • numit (int) – iteration id

Returns:

values on nodes

Return type:

list

MedFileAccessType object

class code_aster.Objects.MedFileAccessType(value)[source]

Bases: object

Enumeration med access type.

property name

MedFileReader object

class code_aster.Objects.MedFileReader[source]

Bases: object

close()[source]

Close med file

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:

MedMesh

getField(*args, **kwargs)[source]

Overloaded function.

  1. getField(self: libaster.MedFileReader, name: str) -> MedField

Get field from name

Parameters:

name (str) – field name

Returns:

med field of name name

Return type:

MedField

  1. getField(self: libaster.MedFileReader, iterator: int) -> MedField

Get field from iterator

Parameters:

iterator (int) – field iterator

Returns:

med field

Return type:

MedField

getFieldNames()[source]

Get all field names

Returns:

list of field names

Return type:

list

getFieldNumber()[source]

Get field number in field

Returns:

field number

Return type:

int

getMesh(iterator)[source]

Get mesh from iterator

Parameters:

iterator (int) – iterator on mesh

Returns:

med mesh

Return type:

MedMesh

getMeshNumber()[source]

Get mesh number

Returns:

mesh number

Return type:

int

getProfileNumber()[source]

Get profile number

Returns:

profile number

Return type:

int

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

getDimension()[source]

Get mesh dimension

getFamilies()[source]

Get family list

Returns:

MedFamily list

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

getName()[source]

Get mesh name

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

getSequence(seq_iterator)[source]

Get calculation sequence

Parameters:

seq_iterator (int) – iterator on sequence

Returns:

pair time step id/iterator id

Return type:

list

getSequenceNumber()[source]

Get calculation sequence number

readCoordinates(numdt, numit)[source]

Get coordinates for calculation sequence

Parameters:
  • numdt (int) – time step id

  • numit (int) – iteration id

Returns:

coordinates list

Return type:

list

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)

readMeshFromMedFile(mesh, path, mesh_name='', verbosity=0)[source]

Open med file

Parameters:
  • Mesh – return mesh to fill

  • path (Path|str) – path to med file

  • mesh_name (str) – mesh name (optional)

  • verbosity (int) – verbosity (optional)

readParallelMeshFromMedFile(mesh, path, mesh_name='', verbosity=0)[source]

Open med file

Parameters:
  • ParallelMesh – 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

getComponentName()[source]

Get component name

getComponentNumber()[source]

Get component name

getComponentVector()[source]

Get component on element vector

getCumulatedSizesVector()[source]

Get cumulated sizes vector

Returns:

Cumulated sizes for each element

Return type:

list

getValues()[source]

Get vector values (WARNING values are owned by MedVector: no copy)

Returns:

all field values

Return type:

numpy array

setComponentName(arg0)[source]

Set component name

setComponentNumber(arg0)[source]

Set component number

setComponentVector(arg0)[source]

Set component on element vector

setCumulatedSizesVector(arg0)[source]

Set cumulated sizes vector

setValues(arg0)[source]

Set vector values (WARNING values are owned by MedVector: no copy)

size()[source]

Get vector size, ie: number of elements (cells or nodes)

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

getCellObjectBalancer()[source]

Get on cells object balancer

Returns:

object balancer

Return type:

balancer

getNodeObjectBalancer()[source]

Get on nodes object balancer

Returns:

object balancer

Return type:

balancer

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.

buildFromIncompleteMeshWithVertexWeights(mesh, weights)[source]

Create the graph corresponding to given IncompleteMesh to be used by PtScotchPartitioner

Parameters:
  • mesh – IncompleteMesh.

  • weights – vertex weights.

debugCheck()[source]

Check graph

MeshEntity object

class code_aster.Objects.MeshEntity(arg0, arg1)[source]

Bases: object

class code_aster.Objects.AllMeshEntities(*args, **kwargs)[source]

Bases: MeshEntity

ModelSplitingMethod object

class code_aster.Objects.ModelSplitingMethod(value)[source]

Bases: object

Enumeration for model split method .

property name

Modelings object

class code_aster.Objects.Modelings(value)[source]

Bases: object

Enumeration of modelings.

property name

Node object

class code_aster.Objects.Node(*args, **kwargs)[source]

Bases: object

getId()[source]

Return the Id of the node.

Returns:

local id of the node.

Return type:

int

getValues()[source]

Return coordinates as (x,y,z.)

Returns:

(x,y,z).

Return type:

list[float]

x()[source]

Return coordinate x.

Returns:

Return type:

float

y()[source]

Return coordinate y.

Returns:

Return type:

float

z()[source]

Return coordinate z.

Returns:

Return type:

float

NormalSpeedReal object

class code_aster.Objects.NormalSpeedReal[source]

Bases: 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.

  1. 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]

  1. 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]

endElementarySendDefinition()[source]

End the definition of sends

getRenumbering()[source]

Get element renumbering (if necessary)

prepareCommunications()[source]

Prepare the communications between processes

setElementsToKeep(elemList)[source]

Add a list of elements to keep on local process

Parameters:

elemList – list of elements to keep

PairingAlgo object

class code_aster.Objects.PairingAlgo(value)[source]

Bases: object

Enumeration for pairing algorithm.

property name

PairingMethod object

class code_aster.Objects.PairingMethod(value)[source]

Bases: object

Type of pairing: Fast, BrutForce and Legacy.

property name

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:

PairingAlgo

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:

GenericFunction

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:

InitialState

getPairingMethod()[source]

Return the pairing method used. It is a value of an enum

Returns:

pairing method.

Return type:

PairingMethod

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

class code_aster.Objects.ParMetisPartitioner[source]

Bases: object

buildGraph(meshConnectionGraph)[source]

Build the ParMetis graph from a MeshConnectionGraph

Parameters:

meshConnectionGraph – MeshConnectionGraph

partitionGraph()[source]

Call ParMetis partitioning

Returns:

Owner for each nodes

Return type:

list[int]

PartOfMaterialField object

class code_aster.Objects.PartOfMaterialField(*args, **kwargs)[source]

Bases: object

PhysicalProblem object

class code_aster.Objects.PhysicalProblem(*args, **kwargs)[source]

Bases: object

addDirichletBC(*args, **kwargs)[source]

Overloaded function.

  1. addDirichletBC(self: libaster.PhysicalProblem, arg0: libaster.DirichletBC) -> None

  2. addDirichletBC(self: libaster.PhysicalProblem, arg0: libaster.DirichletBC, arg1: libaster.Function, arg2: str) -> None

  3. addDirichletBC(self: libaster.PhysicalProblem, arg0: libaster.DirichletBC, arg1: libaster.Formula, arg2: str) -> None

  4. addDirichletBC(self: libaster.PhysicalProblem, arg0: libaster.DirichletBC, arg1: libaster.Function2D, arg2: str) -> None

  5. addDirichletBC(self: libaster.PhysicalProblem, arg0: libaster.DirichletBC, arg1: str) -> None

addLoad(*args, **kwargs)[source]

Overloaded function.

  1. addLoad(self: libaster.PhysicalProblem, arg0: libaster.MechanicalLoadReal) -> None

  2. addLoad(self: libaster.PhysicalProblem, arg0: libaster.MechanicalLoadFunction) -> None

  3. addLoad(self: libaster.PhysicalProblem, arg0: libaster.MechanicalLoadReal, arg1: str) -> None

  4. addLoad(self: libaster.PhysicalProblem, arg0: libaster.MechanicalLoadReal, arg1: libaster.Function, arg2: str) -> None

  5. addLoad(self: libaster.PhysicalProblem, arg0: libaster.MechanicalLoadReal, arg1: libaster.Formula, arg2: str) -> None

  6. addLoad(self: libaster.PhysicalProblem, arg0: libaster.MechanicalLoadReal, arg1: libaster.Function2D, arg2: str) -> None

  7. addLoad(self: libaster.PhysicalProblem, arg0: libaster.MechanicalLoadFunction, arg1: str) -> None

  8. addLoad(self: libaster.PhysicalProblem, arg0: libaster.MechanicalLoadFunction, arg1: libaster.Function, arg2: str) -> None

  9. addLoad(self: libaster.PhysicalProblem, arg0: libaster.MechanicalLoadFunction, arg1: libaster.Formula, arg2: str) -> None

  10. addLoad(self: libaster.PhysicalProblem, arg0: libaster.MechanicalLoadFunction, arg1: libaster.Function2D, arg2: str) -> None

  11. addLoad(self: libaster.PhysicalProblem, arg0: libaster.MechanicalLoadComplex) -> None

  12. addLoad(self: libaster.PhysicalProblem, arg0: libaster.MechanicalLoadComplex, arg1: libaster.Function) -> None

  13. addLoad(self: libaster.PhysicalProblem, arg0: libaster.MechanicalLoadComplex, arg1: libaster.Formula) -> None

  14. addLoad(self: libaster.PhysicalProblem, arg0: libaster.MechanicalLoadComplex, arg1: libaster.Function2D) -> None

  15. addLoad(self: libaster.PhysicalProblem, arg0: ParallelMechanicalLoad<ConstantFieldOnCells<double> >) -> None

  16. addLoad(self: libaster.PhysicalProblem, arg0: ParallelMechanicalLoad<ConstantFieldOnCells<double> >, arg1: str) -> None

  17. addLoad(self: libaster.PhysicalProblem, arg0: ParallelMechanicalLoad<ConstantFieldOnCells<double> >, arg1: libaster.Function, arg2: str) -> None

  18. addLoad(self: libaster.PhysicalProblem, arg0: ParallelMechanicalLoad<ConstantFieldOnCells<double> >, arg1: libaster.Formula, arg2: str) -> None

  19. addLoad(self: libaster.PhysicalProblem, arg0: ParallelMechanicalLoad<ConstantFieldOnCells<double> >, arg1: libaster.Function2D, arg2: str) -> None

  20. addLoad(self: libaster.PhysicalProblem, arg0: ParallelMechanicalLoad<ConstantFieldOnCells<JeveuxString<24> > >, arg1: str) -> None

  21. addLoad(self: libaster.PhysicalProblem, arg0: ParallelMechanicalLoad<ConstantFieldOnCells<JeveuxString<24> > >, arg1: libaster.Function, arg2: str) -> None

  22. addLoad(self: libaster.PhysicalProblem, arg0: ParallelMechanicalLoad<ConstantFieldOnCells<JeveuxString<24> > >, arg1: libaster.Formula, arg2: str) -> None

  23. addLoad(self: libaster.PhysicalProblem, arg0: ParallelMechanicalLoad<ConstantFieldOnCells<JeveuxString<24> > >, arg1: libaster.Function2D, arg2: str) -> None

  24. addLoad(self: libaster.PhysicalProblem, arg0: ParallelThermalLoad<ConstantFieldOnCells<double> >) -> None

  25. addLoad(self: libaster.PhysicalProblem, arg0: ParallelThermalLoad<ConstantFieldOnCells<double> >, arg1: libaster.Function) -> None

  26. addLoad(self: libaster.PhysicalProblem, arg0: ParallelThermalLoad<ConstantFieldOnCells<double> >, arg1: libaster.Formula) -> None

  27. addLoad(self: libaster.PhysicalProblem, arg0: ParallelThermalLoad<ConstantFieldOnCells<double> >, arg1: libaster.Function2D) -> None

  28. addLoad(self: libaster.PhysicalProblem, arg0: ParallelThermalLoad<ConstantFieldOnCells<JeveuxString<24> > >) -> None

  29. addLoad(self: libaster.PhysicalProblem, arg0: ParallelThermalLoad<ConstantFieldOnCells<JeveuxString<24> > >, arg1: libaster.Function) -> None

  30. addLoad(self: libaster.PhysicalProblem, arg0: ParallelThermalLoad<ConstantFieldOnCells<JeveuxString<24> > >, arg1: libaster.Formula) -> None

  31. addLoad(self: libaster.PhysicalProblem, arg0: ParallelThermalLoad<ConstantFieldOnCells<JeveuxString<24> > >, arg1: libaster.Function2D) -> None

  32. addLoad(self: libaster.PhysicalProblem, arg0: libaster.ThermalLoadReal) -> None

  33. addLoad(self: libaster.PhysicalProblem, arg0: libaster.ThermalLoadReal, arg1: libaster.Function) -> None

  34. addLoad(self: libaster.PhysicalProblem, arg0: libaster.ThermalLoadReal, arg1: libaster.Formula) -> None

  35. addLoad(self: libaster.PhysicalProblem, arg0: libaster.ThermalLoadReal, arg1: libaster.Function2D) -> None

  36. addLoad(self: libaster.PhysicalProblem, arg0: libaster.ThermalLoadFunction) -> None

  37. addLoad(self: libaster.PhysicalProblem, arg0: libaster.ThermalLoadFunction, arg1: libaster.Function) -> None

  38. addLoad(self: libaster.PhysicalProblem, arg0: libaster.ThermalLoadFunction, arg1: libaster.Formula) -> None

  39. addLoad(self: libaster.PhysicalProblem, arg0: libaster.ThermalLoadFunction, arg1: libaster.Function2D) -> None

  40. addLoad(self: libaster.PhysicalProblem, arg0: libaster.AcousticLoadComplex) -> None

  41. addLoad(self: libaster.PhysicalProblem, arg0: libaster.AcousticLoadComplex, arg1: libaster.Function) -> None

  42. addLoad(self: libaster.PhysicalProblem, arg0: libaster.AcousticLoadComplex, arg1: libaster.Formula) -> None

  43. 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:

BehaviourProperty

getCodedMaterial()[source]

Return the coded material

Returns:

a pointer to the coded material

Return type:

CodedMaterial

getDOFNumbering()[source]

Return the DOF numbering

Returns:

a pointer to the DOF numbering

Return type:

BaseDOFNumbering

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:

ElementaryCharacteristics

getExternalStateVariables(time)[source]

Get the field for external state variables

Parameters:

[float] (time) – time value to evaluate values

Returns:

external values

Return type:

FieldOnCellsReal

getListOfLoads()[source]

Return list of loads.

Returns:

a pointer to list of loads

Return type:

ListOfLoads

getMaterialField()[source]

Return the material field

Returns:

a pointer to the material field

Return type:

MaterialField

getMesh()[source]

Return the mesh

Returns:

a pointer to the mesh

Return type:

Mesh

getModel()[source]

Return the model

Returns:

a pointer to the model

Return type:

Model

getReferenceExternalStateVariables()[source]

Get the field of reference values for external state variables

Returns:

field of reference values

Return type:

FieldOnCellsReal

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

zeroDirichletBCDOFs(arg0)[source]

Set in-place to zero the DOFs with DirichletBC (aka not assigned by Lagrange multipliers)

Returns:

the modified field

Return type:

field(FieldOnNodes)

PhysicalQuantityComponent object

class code_aster.Objects.PhysicalQuantityComponent(value)[source]

Bases: object

Enumeration for physical component.

property name

PhysicalQuantityManager object

class code_aster.Objects.PhysicalQuantityManager(*args, **kwargs)[source]

Bases: 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]

get_displacement_coeffs()[source]

Return the generalized displacement coefficients.

These coefficients represent the modal displacement amplitudes used during physical restitution.

Returns:

Reference to the vector of displacement coefficients (no copy).

Return type:

list[float]

get_velocity_coeffs()[source]

Return the generalized velocity coefficients.

These coefficients represent the modal velocity amplitudes used to reconstruct physical velocity fields.

Returns:

Reference to the vector of velocity coefficients (no copy).

Return type:

list[float]

Physics object

class code_aster.Objects.Physics(value)[source]

Bases: object

Enumeration physics.

property name

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:
Returns:

stress SIEF_ELGA field

Return type:

FieldOnCellReals

computeStructuralStress(displ, time=0.0, externVar=None)[source]

Compute stress STRX_ELGA

Parameters:
Returns:

stress STRX_ELGA field

Return type:

FieldOnCellReals

PressureReal object

class code_aster.Objects.PressureReal[source]

Bases: object

PtScotchPartitioner object

class code_aster.Objects.PtScotchPartitioner[source]

Bases: object

buildGraph(*args, **kwargs)[source]

Overloaded function.

  1. 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

  1. 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

checkGraph()[source]

Ask PtScotch to check the graph

partitionGraph(deterministic=False)[source]

Call PtScotch partitioning

Parameters:

deterministic (bool=false) – argument to force PtScotch to have a deterministic behaviour

Returns:

Owner for each nodes

Return type:

list[int]

writeGraph(path)[source]

Ask PtScotch to write the graph

Parameters:

path – path to output file

PythonBool object

class code_aster.Objects.PythonBool(value)[source]

Bases: object

Enumeration that represents an extended boolean.

property name

ResultManager object

class code_aster.Objects.ResultManager(*args, **kwargs)[source]

Bases: object

releaseCurrentResult()[source]

Release result

setCurrentResult(result)[source]

Set result which will be enrich during calculation

Argument:

result (Result): result to enrich

ResultNaming object

class code_aster.Objects.ResultNaming(*args, **kwargs)[source]

Bases: object

StructuralForceReal object

class code_aster.Objects.StructuralForceReal[source]

Bases: object

SyntaxSaver object

class code_aster.Objects.SyntaxSaver(arg0, arg1, arg2)[source]

Bases: object

externVarEnumInt object

class code_aster.Objects.externVarEnumInt(value)[source]

Bases: object

Enumeration for external variable.

property name

Exception object

class code_aster.Objects.AsterError[source]

Bases: Exception

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