Materials¶
Definition of all materials |
|
Definition of a "pure" material |
|
Composite material note: the coefficients are set in the pure material (for ex Material::setCoeffComposite) |
|
Reference material for mechanics |
|
Reference material for mechanics |
- class py4amitex.input.Materials¶
Definition of all materials
- add(*args, **kwargs)¶
Overloaded function.
add(self: py4amitex.input.Materials, arg0: py4amitex.input.Material) -> None
Add a material
add(self: py4amitex.input.Materials, arg0: py4amitex.input.Composite) -> None
- composite(self: py4amitex.input.Materials, arg0: int) py4amitex.input.Composite¶
- material(self: py4amitex.input.Materials, arg0: int) py4amitex.input.Material¶
Get a material
- Parameter
id: material index
- Parameter
- numberComposites(self: py4amitex.input.Materials) int¶
Get the number composite of materials
- numberMaterials(self: py4amitex.input.Materials) int¶
Get the number of materials
- property referenceMaterial¶
reference material (mechanics)
- property referenceMaterialD¶
reference material (diffusion)
- toXML(self: py4amitex.input.Materials) str¶
- class py4amitex.input.Material¶
Definition of a “pure” material
- addIntVar(*args, **kwargs)¶
Overloaded function.
addIntVar(self: py4amitex.input.Material, arg0: float) -> None
Add an internal variable
- Parameter
field: initial values of varaible
addIntVar(self: py4amitex.input.Material, arg0: amitex::Field<double>) -> None
- addZone(self: py4amitex.input.Material, zone: py4amitex.input.Zone, coeffs: list[float] = [], coeffKs: list[float] = [], coeffComposites: list[float] = []) None¶
define a zone
- Parameter
zone: voxel grid coordinates
- Parameter
coeffs: mechanics coefficients
- Parameter
coeffKs: diffusion coefficients
- Parameter
- numberCoeff(self: py4amitex.input.Material) int¶
- Returns:
the number of mechanics coefficient
- numberCoeffComposite(self: py4amitex.input.Material) int¶
- Returns:
the number of diffusion coefficient (composite)
- numberCoeffK(self: py4amitex.input.Material) int¶
- Returns:
the number of diffusion coefficient
- numberIntVars(self: py4amitex.input.Material) int¶
- Returns:
number an internal variables
- numberZones(self: py4amitex.input.Material) int¶
- Returns:
the number of zones
- setCoeff(self: py4amitex.input.Material, arg0: int, arg1: float) None¶
Set mechanics coefficient constant value
- Parameter
id: index of coefficient
- Parameter
coeff: value of coefficient
- Parameter
- setCoeffComposite(self: py4amitex.input.Material, arg0: int, arg1: float) None¶
Set mechanics coefficient constant value (for composite materials)
- Parameter
id: index of coefficient
- Parameter
coeff: value of coefficient
- Parameter
- setCoeffCompositeName(self: py4amitex.input.Material, arg0: int, arg1: str) None¶
Set name of composite coefficient (optional)
- Parameter
name: name
- Parameter
- setCoeffCompositeZone(self: py4amitex.input.Material, arg0: int, arg1: list[float]) None¶
Set mechanics coefficient constant zone values (for composite materials)
- Parameter
id: index of coefficient
- Parameter
coeff: value of coefficient
- Parameter
- setCoeffCompositeZoneFromBin(self: py4amitex.input.Material, arg0: int, arg1: os.PathLike) None¶
Set mechanics coefficient constant zone values (for composite materials)
- Parameter
id: index of coefficient
- Parameter
binPath: path to BIN file
- Parameter
- setCoeffComposites(self: py4amitex.input.Material, arg0: list[float]) None¶
Set mechanics coefficient constant value (for composite materials)
- Parameter
coefficients: values of coefficients
- Parameter
- setCoeffK(self: py4amitex.input.Material, arg0: int, arg1: float) None¶
Set diffusion coefficient constant value
- Parameter
id: index of coefficient
- Parameter
coeff: value of coefficients
- Parameter
- setCoeffKName(self: py4amitex.input.Material, arg0: int, arg1: str) None¶
Set name of diffusion coefficient (optional)
- Parameter
name: name
- Parameter
- setCoeffKZone(self: py4amitex.input.Material, arg0: int, arg1: list[float]) None¶
Set diffusion coefficient constant zone values
- Parameter
id: index of coefficient
- Parameter
coeff: value of coefficient
- Parameter
- setCoeffKZoneFromBin(self: py4amitex.input.Material, arg0: int, arg1: os.PathLike) None¶
Set diffusion coefficient constant zone values
- Parameter
id: index of coefficient
- Parameter
binPath: path to BIN file
- Parameter
- setCoeffKs(self: py4amitex.input.Material, arg0: list[float]) None¶
Set all diffusion coefficients
- Parameter
coefficients: values of coefficients
- Parameter
- setCoeffName(self: py4amitex.input.Material, arg0: int, arg1: str) None¶
Set name of coefficient (optional)
- Parameter
name: name
- Parameter
- setCoeffZone(self: py4amitex.input.Material, arg0: int, arg1: list[float]) None¶
Set mechanics coefficient constant zone values
- Parameter
id: index of coefficient
- Parameter
coeff: value of coefficient
- Parameter
- setCoeffZoneFromBin(self: py4amitex.input.Material, arg0: int, arg1: os.PathLike) None¶
Set mechanics coefficient constant zone values
- Parameter
id: index of coefficient
- Parameter
binPath: path to BIN file
- Parameter
- setCoeffs(self: py4amitex.input.Material, arg0: list[float]) None¶
Set all mechanics coefficients
- Parameter
coefficients: values of coefficient
- Parameter
- setIntVarName(self: py4amitex.input.Material, arg0: int, arg1: str) None¶
Set name of internal variable
- Parameter
name: name
- Parameter
- setLaw(self: py4amitex.input.Material, law: str, lib: str = '') None¶
Set behavior law for mechanics
- Parameter
law: name of law
- Parameter
lib: path to the library implementing the law
- Parameter
- setLawK(self: py4amitex.input.Material, law: str, lib: str = '') None¶
Set behavior law for diffusion
- Parameter
law: name of law
- Parameter
lib: path to the library implementing the law
- Parameter
- setNumberCoeff(self: py4amitex.input.Material, arg0: int) None¶
Set the number of mechanics coefficient
- setNumberCoeffComposite(self: py4amitex.input.Material, arg0: int) None¶
Set the number of mechanics coefficient (composite)
- setNumberCoeffK(self: py4amitex.input.Material, arg0: int) None¶
Set the number of diffusion coefficient
- class py4amitex.input.Composite¶
Composite material note: the coefficients are set in the pure material (for ex Material::setCoeffComposite)
- addVoxel(self: py4amitex.input.Composite, position: int, phi: list[float], geom: list[py4amitex.input.InterfaceGeometry] = []) None¶
add a voxel to the material
- Parameter
position: linearized position
- Parameter
phi: volume fractions of each phase
- Parameter
- materialIndices(self: py4amitex.input.Composite) list[int]¶
Get the material indices for each phase
- numberPhases(self: py4amitex.input.Composite) int¶
Get number of phases
- setLaw(self: py4amitex.input.Composite, arg0: str) None¶
Set averaging law
- class py4amitex.input.ReferenceMaterial¶
Reference material for mechanics
- class py4amitex.input.ReferenceMaterialD¶
Reference material for mechanics