Materials

Materials

Definition of all materials

Material

Definition of a "pure" material

Composite

Composite material note: the coefficients are set in the pure material (for ex Material::setCoeffComposite)

ReferenceMaterial

Reference material for mechanics

ReferenceMaterialD

Reference material for mechanics

class py4amitex.input.Materials

Definition of all materials

add(*args, **kwargs)

Overloaded function.

  1. add(self: py4amitex.input.Materials, arg0: py4amitex.input.Material) -> None

Add a material

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

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.

  1. addIntVar(self: py4amitex.input.Material, arg0: float) -> None

Add an internal variable

Parameter field:

initial values of varaible

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

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

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

setCoeffCompositeName(self: py4amitex.input.Material, arg0: int, arg1: str) None

Set name of composite coefficient (optional)

Parameter name:

name

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

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

setCoeffComposites(self: py4amitex.input.Material, arg0: list[float]) None

Set mechanics coefficient constant value (for composite materials)

Parameter coefficients:

values of coefficients

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

setCoeffKName(self: py4amitex.input.Material, arg0: int, arg1: str) None

Set name of diffusion coefficient (optional)

Parameter name:

name

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

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

setCoeffKs(self: py4amitex.input.Material, arg0: list[float]) None

Set all diffusion coefficients

Parameter coefficients:

values of coefficients

setCoeffName(self: py4amitex.input.Material, arg0: int, arg1: str) None

Set name of coefficient (optional)

Parameter name:

name

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

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

setCoeffs(self: py4amitex.input.Material, arg0: list[float]) None

Set all mechanics coefficients

Parameter coefficients:

values of coefficient

setIntVarName(self: py4amitex.input.Material, arg0: int, arg1: str) None

Set name of internal variable

Parameter name:

name

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

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

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

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