MEF90DefMechATLinSoft_Type Derived Type

type, public, extends(MEF90DefMechAT_Type) :: MEF90DefMechATLinSoft_Type

LinSoft, a model with linear softening phase function:

a_k(s) = (1-s)2/(k+(1-k)(1-s)2) w(s) = 1-(1-s)^2 cw = pi/4


Components

Type Visibility Attributes Name Initial
integer(kind=C_INT32_T), public :: aOrder = -1
integer(kind=C_INT32_T), public :: comm
real(kind=C_DOUBLE), public :: cw = -1.0_Kr
real(kind=C_DOUBLE), public :: fractureToughness = 0.0_Kr
real(kind=C_DOUBLE), public :: internalLength = -1.0_Kr
logical(kind=C_BOOL), public :: isElastic = PETSC_FALSE
real(kind=C_DOUBLE), public :: k
character(kind=c_char, len=MEF90MXSTRLEN), public :: name = "NULL"
character(kind=c_char, len=MEF90MXSTRLEN), public :: prefix
real(kind=C_DOUBLE), public :: residualStiffness = 0.0_Kr
class(mef90Mat), public, allocatable :: toughnessAnisotropyMatrix
character(len=MEF90MXSTRLEN), public :: type = ''
integer(kind=C_INT32_T), public :: wOrder = -1

Constructor

public interface MEF90DefMechATLinSoft_Type

  • private function MEF90DefMechATLinSoft_Constructor(k)

    Author
    Blaise Bourdin (2020, bourdin@lsu.edu)

    MEF90DefMechATLinSoft_Constructor: the default constructor for a MEF90_DefMechATLinSoft_Type

    Arguments

    Type IntentOptional Attributes Name
    real(kind=C_DOUBLE), intent(in) :: k

    Return Value type(MEF90DefMechATLinSoft_Type)


Type-Bound Procedures

procedure, public, pass(self) :: D2a => D2aLinSoft

  • private function D2aLinSoft(self, alpha)

    Author
    Blaise Bourdin (2020, bourdin@lsu.edu)

    D2aLinSoft: the second derivative of the "a" function of the LinSoft model

    Arguments

    Type IntentOptional Attributes Name
    class(MEF90DefMechATLinSoft_Type), intent(in) :: self
    real(kind=C_DOUBLE) :: alpha

    Return Value real(kind=c_double)

procedure, public, pass(self) :: D2w => D2wLinSoft

  • private function D2wLinSoft(self, alpha)

    Author
    Blaise Bourdin (2020, bourdin@lsu.edu)

    D2wLinSoft: the second derivative of the "w" function of the LinSoft model

    Arguments

    Type IntentOptional Attributes Name
    class(MEF90DefMechATLinSoft_Type), intent(in) :: self
    real(kind=C_DOUBLE) :: alpha

    Return Value real(kind=c_double)

procedure, public, pass(self) :: Da => DaLinSoft

  • private function DaLinSoft(self, alpha)

    Author
    Blaise Bourdin (2020, bourdin@lsu.edu)

    DaLinSoft: the derivative of the "a" function of the LinSoft model

    Arguments

    Type IntentOptional Attributes Name
    class(MEF90DefMechATLinSoft_Type), intent(in) :: self
    real(kind=C_DOUBLE) :: alpha

    Return Value real(kind=c_double)

procedure, public, pass(self) :: Dw => DwLinSoft

  • private function DwLinSoft(self, alpha)

    Author
    Blaise Bourdin (2020, bourdin@lsu.edu)

    DwLinSoft: the derivative of the "w" function of the LinSoft model

    Arguments

    Type IntentOptional Attributes Name
    class(MEF90DefMechATLinSoft_Type), intent(in) :: self
    real(kind=C_DOUBLE) :: alpha

    Return Value real(kind=c_double)

procedure, public, pass(self) :: a => aLinSoft

  • private function aLinSoft(self, alpha)

    Author
    Blaise Bourdin (2020, bourdin@lsu.edu)

    aLinSoft: the "a" function of the LinSoft model

    Arguments

    Type IntentOptional Attributes Name
    class(MEF90DefMechATLinSoft_Type), intent(in) :: self
    real(kind=C_DOUBLE) :: alpha

    Return Value real(kind=c_double)

procedure, public, pass(self) :: setFromOptions => MEF90DefMechAT_setFromOptions

  • public subroutine MEF90DefMechAT_setFromOptions(self, ierr)

    Author
    Blaise Bourdin (2025, bourdin@mcmaster.ca)

    MEF90DefMechAT_setFromOptions: initializes a MEF90_DefMechAT_Type from options subclasses may implement their own setFromOptions if they have additional parameters, but it is expected that these will call MEF90DefMechAT_setFromOptions

    Arguments

    Type IntentOptional Attributes Name
    class(MEF90DefMechAT_Type), intent(inout) :: self
    integer(kind=C_INT32_T), intent(inout) :: ierr

procedure, public, pass(self) :: view => MEF90Object_view

  • private subroutine MEF90Object_view(self, viewer, ierr)

    Author
    Blaise Bourdin (2026, bourdin@mcmaster.ca)

    MEF90Object_view: Views a MEF90Object and flagged it as viewed so that it is not viewed multiple times when -verbose is set to a high value

    Arguments

    Type IntentOptional Attributes Name
    class(MEF90Object), intent(in) :: self
    type(tPetscViewer), intent(in) :: viewer
    integer(kind=C_INT32_T), intent(inout) :: ierr

procedure, public, pass(self) :: view_internal => MEF90DefMechAT_View

  • public subroutine MEF90DefMechAT_View(self, viewer, ierr)

    Author
    Blaise Bourdin (2025, bourdin@mcmaster.ca)

    MEF90DefMechAT_view: the default viewer for a MEF90_DefMechAT_Type

    Arguments

    Type IntentOptional Attributes Name
    class(MEF90DefMechAT_Type), intent(in) :: self
    type(tPetscViewer), intent(in) :: viewer
    integer(kind=C_INT32_T), intent(inout) :: ierr

procedure, public, pass(self) :: w => wLinSoft

  • private function wLinSoft(self, alpha)

    Author
    Blaise Bourdin (2020, bourdin@lsu.edu)

    wLinSoft: the "w" function of the LinSoft model

    Arguments

    Type IntentOptional Attributes Name
    class(MEF90DefMechATLinSoft_Type), intent(in) :: self
    real(kind=C_DOUBLE) :: alpha

    Return Value real(kind=c_double)