Skip to content

dofs

gripyth.constraints.dofs

Degrees of freedom.

CLASS DESCRIPTION
Dofs

Describes the degrees of freedom of the system.

Dofs dataclass

Describes the degrees of freedom of the system.

METHOD DESCRIPTION
from_node_boundaries

Custom initializer for given input.

ATTRIBUTE DESCRIPTION
active_dof

active DOFs to be solved

TYPE: NDArray[int32]

active_dof_pf

active phase field DOFs

TYPE: NDArray[int32]

dirichlet_bc

DOFs with Dirichlet boundary conditions (BC)

TYPE: NDArray[int32]

dirichlet_bc_pf

phase field DOFs with imposed Dirichlet BC (for notches)

TYPE: NDArray[int32]

hom_dirichlet_bc

DOFs with homogeneous Dirichlet BC

TYPE: NDArray[int32]

hom_dirichlet_bc_pf

DOFs with homogeneous Dirichlet BC for the phase field

TYPE: NDArray[int32]

n_dofs

total number of DOFs, n_nodes * n_dofs_node

TYPE: int

n_dofs_node

number of degrees of freedom per node

TYPE: int

neumann_bc

DOFs with Neumann BC

TYPE: NDArray[int32]

non_hom_dirichlet_bc

DOFs with non-homogeneous Dirichlet BC

TYPE: NDArray[int32]

non_hom_dirichlet_bc_pf

DOFs with non-homogeneous Dirichlet BC for the phase field

TYPE: NDArray[int32]

active_dof instance-attribute

active_dof: NDArray[int32]

active DOFs to be solved

active_dof_pf instance-attribute

active_dof_pf: NDArray[int32]

active phase field DOFs

dirichlet_bc instance-attribute

dirichlet_bc: NDArray[int32]

DOFs with Dirichlet boundary conditions (BC)

dirichlet_bc_pf instance-attribute

dirichlet_bc_pf: NDArray[int32]

phase field DOFs with imposed Dirichlet BC (for notches)

hom_dirichlet_bc instance-attribute

hom_dirichlet_bc: NDArray[int32]

DOFs with homogeneous Dirichlet BC

hom_dirichlet_bc_pf instance-attribute

hom_dirichlet_bc_pf: NDArray[int32]

DOFs with homogeneous Dirichlet BC for the phase field

n_dofs instance-attribute

n_dofs: int

total number of DOFs, n_nodes * n_dofs_node

n_dofs_node instance-attribute

n_dofs_node: int

number of degrees of freedom per node

neumann_bc instance-attribute

neumann_bc: NDArray[int32]

DOFs with Neumann BC

non_hom_dirichlet_bc instance-attribute

non_hom_dirichlet_bc: NDArray[int32]

DOFs with non-homogeneous Dirichlet BC

non_hom_dirichlet_bc_pf instance-attribute

non_hom_dirichlet_bc_pf: NDArray[int32]

DOFs with non-homogeneous Dirichlet BC for the phase field

from_node_boundaries classmethod

from_node_boundaries(
    mesh: Mesh,
    node_boundaries: NodeBoundaries,
    n_dofs_node: int = 2,
) -> Dofs

Custom initializer for given input.