anastruct.fem.plotter.values

Classes

PlottingValues

Functions

det_scaling_factor(→ float)

Determines the scaling factor for the plotting values.

Module Contents

anastruct.fem.plotter.values.det_scaling_factor(max_unit: float, max_val_structure: float) float[source]

Determines the scaling factor for the plotting values.

Args:

max_unit (float): Maximum value of the unit to be plotted max_val_structure (float): Maximum value of the structure coordinates

Returns:

float: Scaling factor

class anastruct.fem.plotter.values.PlottingValues(system: anastruct.fem.system.SystemElements, mesh: int)[source]
system: anastruct.fem.system.SystemElements[source]
mesh: int[source]
_max_val_structure: float | None = None[source]
property max_val_structure: float[source]

Maximum value of the structures dimensions.

Returns:

float: Maximum value of the structures dimensions.

displacements(factor: float | None, linear: bool) Tuple[numpy.ndarray, numpy.ndarray][source]

Determines the plotting values for displacements

Args:

factor (Optional[float]): Factor by which to multiply the plotting values perpendicular to the elements axis linear (bool): If True, the bending in between the elements is determined.

Returns:

Tuple[np.ndarray, np.ndarray]: x and y values

bending_moment(factor: float | None) Tuple[numpy.ndarray, numpy.ndarray][source]

Determines the plotting values for bending moment

Args:

factor (Optional[float]): Factor by which to multiply the plotting values perpendicular to the elements axis

Returns:

Tuple[np.ndarray, np.ndarray]: x and y values

axial_force(factor: float | None) Tuple[numpy.ndarray, numpy.ndarray][source]

Determines the plotting values for axial force

Returns:

Tuple[np.ndarray, np.ndarray]: x and y values

shear_force(factor: float | None) Tuple[numpy.ndarray, numpy.ndarray][source]

Determines the plotting values for shear force

Args:

factor (Optional[float]): Factor by which to multiply the plotting values perpendicular to the elements axis

Returns:

Tuple[np.ndarray, np.ndarray]: x and y values

structure() Tuple[numpy.ndarray, numpy.ndarray][source]

Determines the plotting values for the structure itself

Returns:

Tuple[np.ndarray, np.ndarray]: x and y values