fedoo.constraint.SurfaceForce
- class SurfaceForce(mesh: Mesh, force: list | np.typing.ArrayLike[float], initial_force: np.typing.ArrayLike[float] | None = None, nlgeom: bool | None = None, name: str = '')
Surface stress with a fixed orientation.
Same as distributed load but the the mesh is supposed to be a surface mesh. The surface mesh can be extracted from a volume mesh using the from_nodes or from_elements constructors.
- __init__(mesh: Mesh, force: list | np.typing.ArrayLike[float], initial_force: np.typing.ArrayLike[float] | None = None, nlgeom: bool | None = None, name: str = '')
Methods
SurfaceForce.assemble_global_mat
([compute])Compute the global matrix and global vector related to the assembly if compute = 'all', compute the global matrix and vector if compute = 'matrix', compute only the matrix if compute = 'vector', compute only the vector if compute = 'none', compute nothing
SurfaceForce.convert_data
(data[, ...])SurfaceForce.copy
([new_id])Return a raw copy of the assembly without keeping current state (internal variable).
SurfaceForce.create
(weakform[, mesh, ...])Delete Global Matrix and Global Vector related to the assembly.
Static method of the Assembly class.
SurfaceForce.from_elements
(mesh, ...[, ...])Create a SurfaceForce assembly from an element set.
SurfaceForce.from_nodes
(mesh, node_set, force)Create a SurfaceForce assembly from an node set.
Return a dict with all the known Assembly (with a name).
SurfaceForce.get_element_results
(operator, U)Return some element results based on the finite element discretization of a differential operator on a mesh being given the dof results and the type of elements.
Get the last computed global matrix.
Get the last computed global vector.
SurfaceForce.get_gp_results
(operator, U[, ...])Return some results at element Gauss points based on the finite element discretization of a differential operator on a mesh being given the dof results and the type of elements.
SurfaceForce.get_grad_disp
(U[, Type])Return the Gradient Tensor of a vector (generally displacement given by Problem.get_DofSolution('all') as a list of list of numpy array The total displacement field U has to be given as a flatten numpy array see get_node_results and get_element_resultss
SurfaceForce.get_int_forces
(U[, ...])Only available for 2 nodes beam element Return the element internal Forces and moments related to a specific assembly considering the DOF solution given in U.
SurfaceForce.get_node_results
(operator, U)Return some node results based on the finite element discretization of a differential operator on a mesh being given the dof results and the type of elements.
SurfaceForce.get_strain
(U[, Type, nlgeom])Not a static method.
Initialize the associated weak form and assemble the global matrix with the elastic matrix.
SurfaceForce.integrate_field
(field[, type_field])reset the assembly to it's initial state.
SurfaceForce.set_disp
(disp)Start a new time increment.
SurfaceForce.sum
(*listAssembly[, name])Return a new assembly which is a sum of N assembly.
Reset the assembly to the begining of the time iteration.
SurfaceForce.update
(pb[, compute])Update the associated weak form and assemble the global matrix :param - pb: a Problem object containing the Dof values
returns: The total number of integration points (ie Gauss points) associated to the assembly.
Name of the assembly if defined.
Modeling space associated to the assembly.
Alias for the sv dict containing the state variables.
Dictionary of state variables associated to the current problem.
Assembly associated to the mesh of the deformed geometry.
AssemblySum object that contains the assembly.