RAParticleAssemblyCustom#
- class ansys.rocky.app.ra_particle_assembly.RAParticleAssemblyCustom(id: str, model_id: str | None = None)#
Bases:
ansys.rocky.app.api_element_item.ApiElementItemBase wrapper class for all subjects.
- Variables:
id (unicode) – The id of the subject
_model_id (unicode) – The id of the input reader associated with the subject
Overview#
Deprecated: Use |
|
Deprecated: Use |
|
Get the value of “Area”. |
|
Set the value of “Area”. |
|
Get the value of “Center of Mass”. |
|
Set the values of “Center of Mass”. |
|
Get the value of “Enabled”. |
|
Set the value of “Enabled”. |
|
Get the value of “Geometric Center”. |
|
Set the values of “Geometric Center”. |
|
Get the value of “Inertia X Axis”. |
|
Set the values of “Inertia X Axis”. |
|
Get the value of “Inertia Y Axis”. |
|
Set the values of “Inertia Y Axis”. |
|
Get the value of “Inertia Z Axis”. |
|
Set the values of “Inertia Z Axis”. |
|
Get the value of “Mass”. |
|
Set the value of “Mass”. |
|
Get the value of “Principal Moment of Inertia”. |
|
Set the values of “Principal Moment of Inertia”. |
|
Get the value of “Porosity”. |
|
Set the value of “Porosity”. |
|
Get the value of “Volume”. |
|
Set the value of “Volume”. |
Import detail#
from ansys.rocky.app.ra_particle_assembly import RAParticleAssemblyCustom
Method detail#
- classmethod RAParticleAssemblyCustom.GetWrappedClass() type[rocky30.models.particle.particle_assembly.ParticleAssemblyCustom]#
- classmethod RAParticleAssemblyCustom.GetClassName()#
- RAParticleAssemblyCustom.GetMomentOfInertia(unit: str | None = None) list[float]#
Deprecated: Use
GetPrincipalMomentOfInertia()instead.
- RAParticleAssemblyCustom.SetMomentOfInertia(values: collections.abc.Sequence[str | float], unit: str | None = None) None#
Deprecated: Use
SetPrincipalMomentOfInertia()instead.
- RAParticleAssemblyCustom.GetArea(unit: str | None = None) float#
Get the value of “Area”.
- Parameters:
unit – The unit for the returned value. If no unit is provided, the returned value will be in “m2”.
- RAParticleAssemblyCustom.SetArea(value: str | float, unit: str | None = None) None#
Set the value of “Area”.
- Parameters:
value – The value to set. This value can be an expression with input variables or float type.
unit – The unit for value. If no unit is provided, value is assumed to be in “m2”.
- RAParticleAssemblyCustom.GetCenterOfMass(unit: str | None = None) list[float]#
Get the value of “Center of Mass”.
- Parameters:
unit – The unit for the returned values. If no unit is provided, the returned values will be in “m”.
- RAParticleAssemblyCustom.SetCenterOfMass(values: collections.abc.Sequence[str | float], unit: str | None = None) None#
Set the values of “Center of Mass”.
- Parameters:
values – The values to set. The values can be heterogeneous, the element of values can be an expression with input variables or a float. Must have exactly 3 elements.
unit – The unit for values. If no unit is provided, values is assumed to be in “m”.
- Raises:
RockyApiError – If values doesn’t have exactly 3 elements.
- RAParticleAssemblyCustom.SetEnabled(value: bool) None#
Set the value of “Enabled”.
- Parameters:
value – The value to set.
- RAParticleAssemblyCustom.GetGeometricCenter(unit: str | None = None) list[float]#
Get the value of “Geometric Center”.
- Parameters:
unit – The unit for the returned values. If no unit is provided, the returned values will be in “m”.
- RAParticleAssemblyCustom.SetGeometricCenter(values: collections.abc.Sequence[str | float], unit: str | None = None) None#
Set the values of “Geometric Center”.
- Parameters:
values – The values to set. The values can be heterogeneous, the element of values can be an expression with input variables or a float. Must have exactly 3 elements.
unit – The unit for values. If no unit is provided, values is assumed to be in “m”.
- Raises:
RockyApiError – If values doesn’t have exactly 3 elements.
- RAParticleAssemblyCustom.GetInertiaXAxis(unit: str | None = None) list[float]#
Get the value of “Inertia X Axis”.
- Parameters:
unit – The unit for the returned values. If no unit is provided, the returned values will be in “-“.
- RAParticleAssemblyCustom.SetInertiaXAxis(values: collections.abc.Sequence[str | float], unit: str | None = None) None#
Set the values of “Inertia X Axis”.
- Parameters:
values – The values to set. The values can be heterogeneous, the element of values can be an expression with input variables or a float. Must have exactly 3 elements.
unit – The unit for values. If no unit is provided, values is assumed to be in “-“.
- Raises:
RockyApiError – If values doesn’t have exactly 3 elements.
- RAParticleAssemblyCustom.GetInertiaYAxis(unit: str | None = None) list[float]#
Get the value of “Inertia Y Axis”.
- Parameters:
unit – The unit for the returned values. If no unit is provided, the returned values will be in “-“.
- RAParticleAssemblyCustom.SetInertiaYAxis(values: collections.abc.Sequence[str | float], unit: str | None = None) None#
Set the values of “Inertia Y Axis”.
- Parameters:
values – The values to set. The values can be heterogeneous, the element of values can be an expression with input variables or a float. Must have exactly 3 elements.
unit – The unit for values. If no unit is provided, values is assumed to be in “-“.
- Raises:
RockyApiError – If values doesn’t have exactly 3 elements.
- RAParticleAssemblyCustom.GetInertiaZAxis(unit: str | None = None) list[float]#
Get the value of “Inertia Z Axis”.
- Parameters:
unit – The unit for the returned values. If no unit is provided, the returned values will be in “-“.
- RAParticleAssemblyCustom.SetInertiaZAxis(values: collections.abc.Sequence[str | float], unit: str | None = None) None#
Set the values of “Inertia Z Axis”.
- Parameters:
values – The values to set. The values can be heterogeneous, the element of values can be an expression with input variables or a float. Must have exactly 3 elements.
unit – The unit for values. If no unit is provided, values is assumed to be in “-“.
- Raises:
RockyApiError – If values doesn’t have exactly 3 elements.
- RAParticleAssemblyCustom.GetMass(unit: str | None = None) float#
Get the value of “Mass”.
- Parameters:
unit – The unit for the returned value. If no unit is provided, the returned value will be in “kg”.
- RAParticleAssemblyCustom.SetMass(value: str | float, unit: str | None = None) None#
Set the value of “Mass”.
- Parameters:
value – The value to set. This value can be an expression with input variables or float type.
unit – The unit for value. If no unit is provided, value is assumed to be in “kg”.
- RAParticleAssemblyCustom.GetPrincipalMomentOfInertia(unit: str | None = None) list[float]#
Get the value of “Principal Moment of Inertia”.
- Parameters:
unit – The unit for the returned values. If no unit is provided, the returned values will be in “m5”.
- RAParticleAssemblyCustom.SetPrincipalMomentOfInertia(values: collections.abc.Sequence[str | float], unit: str | None = None) None#
Set the values of “Principal Moment of Inertia”.
- Parameters:
values – The values to set. The values can be heterogeneous, the element of values can be an expression with input variables or a float. Must have exactly 3 elements.
unit – The unit for values. If no unit is provided, values is assumed to be in “m5”.
- Raises:
RockyApiError – If values doesn’t have exactly 3 elements.
- RAParticleAssemblyCustom.GetPorosity(unit: str | None = None) float#
Get the value of “Porosity”.
- Parameters:
unit – The unit for the returned value. If no unit is provided, the returned value will be in “<fraction>”.
- RAParticleAssemblyCustom.SetPorosity(value: str | float, unit: str | None = None) None#
Set the value of “Porosity”.
- Parameters:
value – The value to set. This value can be an expression with input variables or float type.
unit – The unit for value. If no unit is provided, value is assumed to be in “<fraction>”.
- RAParticleAssemblyCustom.GetVolume(unit: str | None = None) float#
Get the value of “Volume”.
- Parameters:
unit – The unit for the returned value. If no unit is provided, the returned value will be in “m3”.
- RAParticleAssemblyCustom.SetVolume(value: str | float, unit: str | None = None) None#
Set the value of “Volume”.
- Parameters:
value – The value to set. This value can be an expression with input variables or float type.
unit – The unit for value. If no unit is provided, value is assumed to be in “m3”.