# Copyright (C) 2021 - 2024 ANSYS, Inc. and/or its affiliates.
# SPDX-License-Identifier: MIT
#
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.

"""Module providing the MatLaminatedFractureDaimlerCamanho class."""
import typing
from ansys.dyna.core.lib.card import Card, Field, Flag
from ansys.dyna.core.lib.field_schema import FieldSchema
from ansys.dyna.core.lib.option_card import OptionCardSet, OptionSpec
from ansys.dyna.core.lib.keyword_base import KeywordBase

_MATLAMINATEDFRACTUREDAIMLERCAMANHO_CARD0 = (
    FieldSchema("mid", int, 0, 10, None),
    FieldSchema("ro", float, 10, 10, None),
    FieldSchema("ea", float, 20, 10, None),
    FieldSchema("eb", float, 30, 10, None),
    FieldSchema("ec", float, 40, 10, None),
    FieldSchema("prba", float, 50, 10, None),
    FieldSchema("prca", float, 60, 10, None),
    FieldSchema("prcb", float, 70, 10, None),
)

_MATLAMINATEDFRACTUREDAIMLERCAMANHO_CARD1 = (
    FieldSchema("gab", float, 0, 10, None),
    FieldSchema("gbc", float, 10, 10, None),
    FieldSchema("gca", float, 20, 10, None),
    FieldSchema("aopt", float, 30, 10, None),
    FieldSchema("daf", float, 40, 10, 0.0),
    FieldSchema("dkf", float, 50, 10, 0.0),
    FieldSchema("dmf", float, 60, 10, 0.0),
    FieldSchema("efs", float, 70, 10, None),
)

_MATLAMINATEDFRACTUREDAIMLERCAMANHO_CARD2 = (
    FieldSchema("xp", float, 0, 10, None),
    FieldSchema("yp", float, 10, 10, None),
    FieldSchema("zp", float, 20, 10, None),
    FieldSchema("a1", float, 30, 10, None),
    FieldSchema("a2", float, 40, 10, None),
    FieldSchema("a3", float, 50, 10, None),
    FieldSchema("dsf", float, 60, 10, 0.0),
)

_MATLAMINATEDFRACTUREDAIMLERCAMANHO_CARD3 = (
    FieldSchema("v1", float, 0, 10, None),
    FieldSchema("v2", float, 10, 10, None),
    FieldSchema("v3", float, 20, 10, None),
    FieldSchema("d1", float, 30, 10, None),
    FieldSchema("d2", float, 40, 10, None),
    FieldSchema("d3", float, 50, 10, None),
    FieldSchema("mangle", float, 60, 10, None),
    FieldSchema("msg", float, 70, 10, None),
)

_MATLAMINATEDFRACTUREDAIMLERCAMANHO_CARD4 = (
    FieldSchema("gxc", float, 0, 10, None),
    FieldSchema("gxt", float, 10, 10, None),
    FieldSchema("gyc", float, 20, 10, None),
    FieldSchema("gyt", float, 30, 10, None),
    FieldSchema("gsl", float, 40, 10, None),
    FieldSchema("gxco", float, 50, 10, None),
    FieldSchema("gxto", float, 60, 10, None),
)

_MATLAMINATEDFRACTUREDAIMLERCAMANHO_CARD5 = (
    FieldSchema("xc", float, 0, 10, None),
    FieldSchema("xt", float, 10, 10, None),
    FieldSchema("yc", float, 20, 10, None),
    FieldSchema("yt", float, 30, 10, None),
    FieldSchema("sl", float, 40, 10, None),
    FieldSchema("xco", float, 50, 10, None),
    FieldSchema("xto", float, 60, 10, None),
)

_MATLAMINATEDFRACTUREDAIMLERCAMANHO_CARD6 = (
    FieldSchema("fio", float, 0, 10, 53.0),
    FieldSchema("sigy", float, 10, 10, None),
    FieldSchema("etan", float, 20, 10, None),
    FieldSchema("beta", float, 30, 10, None),
    FieldSchema("pfl", float, 40, 10, None),
    FieldSchema("puck", float, 50, 10, 0.0),
    FieldSchema("soft", float, 60, 10, 1.0),
    FieldSchema("dt", float, 70, 10, None),
)

_MATLAMINATEDFRACTUREDAIMLERCAMANHO_CARD7 = (
    FieldSchema("epsf23", float, 0, 10, None),
    FieldSchema("epsr23", float, 10, 10, None),
    FieldSchema("tsmd23", float, 20, 10, None),
    FieldSchema("epsf31", float, 30, 10, None),
    FieldSchema("epsr31", float, 40, 10, None),
    FieldSchema("tsmd31", float, 50, 10, None),
)

_MATLAMINATEDFRACTUREDAIMLERCAMANHO_OPTION0_CARD0 = (
    FieldSchema("title", str, 0, 80, None),
)

class MatLaminatedFractureDaimlerCamanho(KeywordBase):
    """DYNA MAT_LAMINATED_FRACTURE_DAIMLER_CAMANHO keyword"""

    keyword = "MAT"
    subkeyword = "LAMINATED_FRACTURE_DAIMLER_CAMANHO"
    option_specs = [
        OptionSpec("TITLE", -1, 1),
    ]

    def __init__(self, **kwargs):
        """Initialize the MatLaminatedFractureDaimlerCamanho class."""
        super().__init__(**kwargs)
        kwargs["parent"] = self
        self._cards = [
            Card.from_field_schemas_with_defaults(
                _MATLAMINATEDFRACTUREDAIMLERCAMANHO_CARD0,
                **kwargs,
            ),            Card.from_field_schemas_with_defaults(
                _MATLAMINATEDFRACTUREDAIMLERCAMANHO_CARD1,
                **kwargs,
            ),            Card.from_field_schemas_with_defaults(
                _MATLAMINATEDFRACTUREDAIMLERCAMANHO_CARD2,
                **kwargs,
            ),            Card.from_field_schemas_with_defaults(
                _MATLAMINATEDFRACTUREDAIMLERCAMANHO_CARD3,
                **kwargs,
            ),            Card.from_field_schemas_with_defaults(
                _MATLAMINATEDFRACTUREDAIMLERCAMANHO_CARD4,
                **kwargs,
            ),            Card.from_field_schemas_with_defaults(
                _MATLAMINATEDFRACTUREDAIMLERCAMANHO_CARD5,
                **kwargs,
            ),            Card.from_field_schemas_with_defaults(
                _MATLAMINATEDFRACTUREDAIMLERCAMANHO_CARD6,
                **kwargs,
            ),            Card.from_field_schemas_with_defaults(
                _MATLAMINATEDFRACTUREDAIMLERCAMANHO_CARD7,
                **kwargs,
            ),            OptionCardSet(
                option_spec = MatLaminatedFractureDaimlerCamanho.option_specs[0],
                cards = [
                    Card.from_field_schemas_with_defaults(
                        _MATLAMINATEDFRACTUREDAIMLERCAMANHO_OPTION0_CARD0,
                        **kwargs,
                    ),
                ],
                **kwargs
            ),
        ]
    @property
    def mid(self) -> typing.Optional[int]:
        """Get or set the Material identification.
        """ # nopep8
        return self._cards[0].get_value("mid")

    @mid.setter
    def mid(self, value: int) -> None:
        """Set the mid property."""
        self._cards[0].set_value("mid", value)

    @property
    def ro(self) -> typing.Optional[float]:
        """Get or set the Mass density.
        """ # nopep8
        return self._cards[0].get_value("ro")

    @ro.setter
    def ro(self, value: float) -> None:
        """Set the ro property."""
        self._cards[0].set_value("ro", value)

    @property
    def ea(self) -> typing.Optional[float]:
        """Get or set the Ea, Young's modulus in a-direction (longitudinal).
        """ # nopep8
        return self._cards[0].get_value("ea")

    @ea.setter
    def ea(self, value: float) -> None:
        """Set the ea property."""
        self._cards[0].set_value("ea", value)

    @property
    def eb(self) -> typing.Optional[float]:
        """Get or set the Eb, Young's modulus in b-direction (transverse).
        """ # nopep8
        return self._cards[0].get_value("eb")

    @eb.setter
    def eb(self, value: float) -> None:
        """Set the eb property."""
        self._cards[0].set_value("eb", value)

    @property
    def ec(self) -> typing.Optional[float]:
        """Get or set the Ec, Young's modulus in c-direction.
        """ # nopep8
        return self._cards[0].get_value("ec")

    @ec.setter
    def ec(self, value: float) -> None:
        """Set the ec property."""
        self._cards[0].set_value("ec", value)

    @property
    def prba(self) -> typing.Optional[float]:
        """Get or set the Vba, Poisson's ratio ba.
        """ # nopep8
        return self._cards[0].get_value("prba")

    @prba.setter
    def prba(self, value: float) -> None:
        """Set the prba property."""
        self._cards[0].set_value("prba", value)

    @property
    def prca(self) -> typing.Optional[float]:
        """Get or set the Vca, Poisson's ratio ca.
        """ # nopep8
        return self._cards[0].get_value("prca")

    @prca.setter
    def prca(self, value: float) -> None:
        """Set the prca property."""
        self._cards[0].set_value("prca", value)

    @property
    def prcb(self) -> typing.Optional[float]:
        """Get or set the Vcb, Poisson's ratio cb.
        """ # nopep8
        return self._cards[0].get_value("prcb")

    @prcb.setter
    def prcb(self, value: float) -> None:
        """Set the prcb property."""
        self._cards[0].set_value("prcb", value)

    @property
    def gab(self) -> typing.Optional[float]:
        """Get or set the Gab, shear modulus ab.
        """ # nopep8
        return self._cards[1].get_value("gab")

    @gab.setter
    def gab(self, value: float) -> None:
        """Set the gab property."""
        self._cards[1].set_value("gab", value)

    @property
    def gbc(self) -> typing.Optional[float]:
        """Get or set the Gbc, shear modulus bc.
        """ # nopep8
        return self._cards[1].get_value("gbc")

    @gbc.setter
    def gbc(self, value: float) -> None:
        """Set the gbc property."""
        self._cards[1].set_value("gbc", value)

    @property
    def gca(self) -> typing.Optional[float]:
        """Get or set the Gca, shear modulus ca.
        """ # nopep8
        return self._cards[1].get_value("gca")

    @gca.setter
    def gca(self, value: float) -> None:
        """Set the gca property."""
        self._cards[1].set_value("gca", value)

    @property
    def aopt(self) -> typing.Optional[float]:
        """Get or set the Material axes option:
        EQ.0.0: locally orthotropic with material axes determined by
        element nodes 1, 2, and 4, as with *DEFINE_COORDINATE_NODES.
        and then, for shells only, rotated about the shell element normal by an angle MANGLE
        EQ.1.0: locally orthotropic with material axes determined by a
        point in space and the global location of the element center; this is the a-direction.
        This option is for solid elements only.
        EQ.2.0: globally orthotropic with material axes determined by vectors defined below, as with *DEFINE_COORDI_NATE_VECTOR.
        EQ.3.0: locally orthotropic material axes determined by rotating the material axes about the element normal by an angle,
        BETA, from a line in the plane of the element defined by	the cross product of the vector v with the element normal.
        EQ.4.0: locally orthotropic in cylindrical coordinate system with
        the material axes determined by a vector v, and an originating point, p, which define the centerline axis. This option is for solid elements only
        LT.0.0: the absolute value of AOPT is a coordinate system ID number (CID on *DEFINE_COORDINATE_NODES,
        *DEFINE_COORDINATE_SYSTEM or *DEFINE_COOR_DINATE_VECTOR). Available with the R3 release of Version 971 and later.
        """ # nopep8
        return self._cards[1].get_value("aopt")

    @aopt.setter
    def aopt(self, value: float) -> None:
        """Set the aopt property."""
        self._cards[1].set_value("aopt", value)

    @property
    def daf(self) -> float:
        """Get or set the Flag to control failure of an integration point based on longitudinal (fiber) tensile failure:
        EQ.0.0: Integration point fails if any damage variable reaches 1.0.
        EQ.1.0: No failure of integration point due to fiber tensile failure (da(i)=1.0).
        """ # nopep8
        return self._cards[1].get_value("daf")

    @daf.setter
    def daf(self, value: float) -> None:
        """Set the daf property."""
        if value not in [0.0, 1.0, None]:
            raise Exception("""daf must be `None` or one of {0.0,1.0}.""")
        self._cards[1].set_value("daf", value)

    @property
    def dkf(self) -> float:
        """Get or set the Flag to control failure of an integration point based on longitudinal (fiber) compressive failure:
        EQ.0.0: integration point fails if any damage variable reaches 1.0.
        EQ.1.0: no failure of integration point due to fiber compressive failure	(dkink(i)=1.0).
        """ # nopep8
        return self._cards[1].get_value("dkf")

    @dkf.setter
    def dkf(self, value: float) -> None:
        """Set the dkf property."""
        if value not in [0.0, 1.0, None]:
            raise Exception("""dkf must be `None` or one of {0.0,1.0}.""")
        self._cards[1].set_value("dkf", value)

    @property
    def dmf(self) -> float:
        """Get or set the Flag to control failure of an integration point based on transverse (matrix) failure:
        EQ.0.0: integration point fails if any damage variable reaches 1.0.
        EQ.1.0: no failure of integration point due to matrix failure (dmat(i)=1.0).
        """ # nopep8
        return self._cards[1].get_value("dmf")

    @dmf.setter
    def dmf(self, value: float) -> None:
        """Set the dmf property."""
        if value not in [0.0, 1.0, None]:
            raise Exception("""dmf must be `None` or one of {0.0,1.0}.""")
        self._cards[1].set_value("dmf", value)

    @property
    def efs(self) -> typing.Optional[float]:
        """Get or set the Maximum effective strain for element layer failure. A value of unity
        would equal 100% strain.
        GT.0.0: fails when effective strain calculated assuming material is volume preserving exceeds EFS.
        LT.0.0: fails when effective strain calculated from the full strain tensor exceeds |EFS|.
        """ # nopep8
        return self._cards[1].get_value("efs")

    @efs.setter
    def efs(self, value: float) -> None:
        """Set the efs property."""
        self._cards[1].set_value("efs", value)

    @property
    def xp(self) -> typing.Optional[float]:
        """Get or set the Coordinates of point p for AOPT = 1 and 4.
        """ # nopep8
        return self._cards[2].get_value("xp")

    @xp.setter
    def xp(self, value: float) -> None:
        """Set the xp property."""
        self._cards[2].set_value("xp", value)

    @property
    def yp(self) -> typing.Optional[float]:
        """Get or set the Coordinates of point p for AOPT = 1 and 4.
        """ # nopep8
        return self._cards[2].get_value("yp")

    @yp.setter
    def yp(self, value: float) -> None:
        """Set the yp property."""
        self._cards[2].set_value("yp", value)

    @property
    def zp(self) -> typing.Optional[float]:
        """Get or set the Coordinates of point p for AOPT = 1 and 4.
        """ # nopep8
        return self._cards[2].get_value("zp")

    @zp.setter
    def zp(self, value: float) -> None:
        """Set the zp property."""
        self._cards[2].set_value("zp", value)

    @property
    def a1(self) -> typing.Optional[float]:
        """Get or set the Define components of vector a for AOPT = 2.
        """ # nopep8
        return self._cards[2].get_value("a1")

    @a1.setter
    def a1(self, value: float) -> None:
        """Set the a1 property."""
        self._cards[2].set_value("a1", value)

    @property
    def a2(self) -> typing.Optional[float]:
        """Get or set the Define components of vector a for AOPT = 2.
        """ # nopep8
        return self._cards[2].get_value("a2")

    @a2.setter
    def a2(self, value: float) -> None:
        """Set the a2 property."""
        self._cards[2].set_value("a2", value)

    @property
    def a3(self) -> typing.Optional[float]:
        """Get or set the Define components of vector a for AOPT = 2.
        """ # nopep8
        return self._cards[2].get_value("a3")

    @a3.setter
    def a3(self, value: float) -> None:
        """Set the a3 property."""
        self._cards[2].set_value("a3", value)

    @property
    def dsf(self) -> float:
        """Get or set the Flag to control failure of an integration point based on in-plane shear failure:
        EQ. 0.0: integration point fails if any damage variable reaches 1.0.
        EQ. 1.0: No failure of integration point due to in-plane shear failure, dls(i)=1.0.
        """ # nopep8
        return self._cards[2].get_value("dsf")

    @dsf.setter
    def dsf(self, value: float) -> None:
        """Set the dsf property."""
        if value not in [0.0, 1.0, None]:
            raise Exception("""dsf must be `None` or one of {0.0,1.0}.""")
        self._cards[2].set_value("dsf", value)

    @property
    def v1(self) -> typing.Optional[float]:
        """Get or set the Define components of vector v for AOPT = 3.
        """ # nopep8
        return self._cards[3].get_value("v1")

    @v1.setter
    def v1(self, value: float) -> None:
        """Set the v1 property."""
        self._cards[3].set_value("v1", value)

    @property
    def v2(self) -> typing.Optional[float]:
        """Get or set the Define components of vector v for AOPT = 3.
        """ # nopep8
        return self._cards[3].get_value("v2")

    @v2.setter
    def v2(self, value: float) -> None:
        """Set the v2 property."""
        self._cards[3].set_value("v2", value)

    @property
    def v3(self) -> typing.Optional[float]:
        """Get or set the Define components of vector v for AOPT = 3.
        """ # nopep8
        return self._cards[3].get_value("v3")

    @v3.setter
    def v3(self, value: float) -> None:
        """Set the v3 property."""
        self._cards[3].set_value("v3", value)

    @property
    def d1(self) -> typing.Optional[float]:
        """Get or set the Define components of vector d for AOPT = 2.
        """ # nopep8
        return self._cards[3].get_value("d1")

    @d1.setter
    def d1(self, value: float) -> None:
        """Set the d1 property."""
        self._cards[3].set_value("d1", value)

    @property
    def d2(self) -> typing.Optional[float]:
        """Get or set the Define components of vector d for AOPT = 2.
        """ # nopep8
        return self._cards[3].get_value("d2")

    @d2.setter
    def d2(self, value: float) -> None:
        """Set the d2 property."""
        self._cards[3].set_value("d2", value)

    @property
    def d3(self) -> typing.Optional[float]:
        """Get or set the Define components of vector d for AOPT = 2.
        """ # nopep8
        return self._cards[3].get_value("d3")

    @d3.setter
    def d3(self, value: float) -> None:
        """Set the d3 property."""
        self._cards[3].set_value("d3", value)

    @property
    def mangle(self) -> typing.Optional[float]:
        """Get or set the Material angle in degrees for AOPT = 0 (shells only) and 3.
        MANGLE may be overridden on the element card, see
        *ELEMENT_SHELL_BETA and *ELEMENT_SOLID_ORTHO.
        """ # nopep8
        return self._cards[3].get_value("mangle")

    @mangle.setter
    def mangle(self, value: float) -> None:
        """Set the mangle property."""
        self._cards[3].set_value("mangle", value)

    @property
    def msg(self) -> typing.Optional[float]:
        """Get or set the Flag to control the output of warning messages:
        EQ.0:	Nnly one warning message will be written per part.
        GT.0 : All warnings are written.
        LT.0 : No warnings are written.
        """ # nopep8
        return self._cards[3].get_value("msg")

    @msg.setter
    def msg(self, value: float) -> None:
        """Set the msg property."""
        self._cards[3].set_value("msg", value)

    @property
    def gxc(self) -> typing.Optional[float]:
        """Get or set the Fracture toughness for longitudinal (fiber) compressive failure mode.
        GT.0.0: The given value will be regularized with the characteristic element length.
        LT.0.0: Load curve ID=(-GXC) which defines the fracture
        toughness for fiber compressive failure mode as a
        function of characteristic element length. No further regularization.
        """ # nopep8
        return self._cards[4].get_value("gxc")

    @gxc.setter
    def gxc(self, value: float) -> None:
        """Set the gxc property."""
        self._cards[4].set_value("gxc", value)

    @property
    def gxt(self) -> typing.Optional[float]:
        """Get or set the Fracture toughness for longitudinal (fiber) tensile failure mode.
        GT.0.0: The given value will be regularized with the characteristic element length.
        LT.0.0: Load curve ID=(-GXT) which defines the fracture
        toughness for fiber tensile failure mode as a function of
        characteristic element length. No further regularization.
        """ # nopep8
        return self._cards[4].get_value("gxt")

    @gxt.setter
    def gxt(self, value: float) -> None:
        """Set the gxt property."""
        self._cards[4].set_value("gxt", value)

    @property
    def gyc(self) -> typing.Optional[float]:
        """Get or set the Fracture toughness for transverse compressive failure mode.
        GT.0.0: The given value will be regularized with the characteristic element length.
        LT.0.0: Load curve ID=(-GYC)) which defines the fracture
        toughness for intralaminar matrix tensile failure as a
        function of characteristic element length. No further regularization.
        """ # nopep8
        return self._cards[4].get_value("gyc")

    @gyc.setter
    def gyc(self, value: float) -> None:
        """Set the gyc property."""
        self._cards[4].set_value("gyc", value)

    @property
    def gyt(self) -> typing.Optional[float]:
        """Get or set the Fracture toughness for transverse tensile failure mode.
        GT.0.0: The given value will be regularized with the characteristic element length.
        LT.0.0: Load curve ID=(-GYT)) which defines the fracture
        toughness for intralaminar matrix transverse shear failure
        as a function of characteristic element length. No further      regularization.
        """ # nopep8
        return self._cards[4].get_value("gyt")

    @gyt.setter
    def gyt(self, value: float) -> None:
        """Set the gyt property."""
        self._cards[4].set_value("gyt", value)

    @property
    def gsl(self) -> typing.Optional[float]:
        """Get or set the Fracture toughness for in-plane shear failure mode.
        GT.0.0: The given value will be regularized with the characteristic element length.
        LT.0.0: Load curve ID=(-GSL)) which defines the fracture
        toughness for intralaminar matrix longitudinal shear
        failure as a function of characteristic element length. No further regularization.
        """ # nopep8
        return self._cards[4].get_value("gsl")

    @gsl.setter
    def gsl(self, value: float) -> None:
        """Set the gsl property."""
        self._cards[4].set_value("gsl", value)

    @property
    def gxco(self) -> typing.Optional[float]:
        """Get or set the Fracture toughness for longitudinal (fiber) compressive failure mode
        to define bi-linear damage evolution..
        GT.0.0: The given value will be regularized with the characteristic element length.
        LT.0.0: Load curve ID=(-GXCO)) which defines the fracture
        toughness for intralaminar matrix longitudinal shear
        failure as a function of characteristic element length. No further regularization.
        """ # nopep8
        return self._cards[4].get_value("gxco")

    @gxco.setter
    def gxco(self, value: float) -> None:
        """Set the gxco property."""
        self._cards[4].set_value("gxco", value)

    @property
    def gxto(self) -> typing.Optional[float]:
        """Get or set the Fracture toughness for longitudinal (fiber) tensile failure mode to
        define bi-linear damage evolution.
        GT.0.0: The given value will be regularized with the characteristic element length.
        LT.0.0: Load curve ID=(-GXTO)) which defines the fracture
        toughness for intralaminar matrix longitudinal shear
        failure as a function of characteristic element length. No further regularization.
        """ # nopep8
        return self._cards[4].get_value("gxto")

    @gxto.setter
    def gxto(self, value: float) -> None:
        """Set the gxto property."""
        self._cards[4].set_value("gxto", value)

    @property
    def xc(self) -> typing.Optional[float]:
        """Get or set the Longitudinal compressive strength, a-axis (positive value).
        """ # nopep8
        return self._cards[5].get_value("xc")

    @xc.setter
    def xc(self, value: float) -> None:
        """Set the xc property."""
        self._cards[5].set_value("xc", value)

    @property
    def xt(self) -> typing.Optional[float]:
        """Get or set the Longitudinal tensile strength, a-axis.
        """ # nopep8
        return self._cards[5].get_value("xt")

    @xt.setter
    def xt(self, value: float) -> None:
        """Set the xt property."""
        self._cards[5].set_value("xt", value)

    @property
    def yc(self) -> typing.Optional[float]:
        """Get or set the Transverse compressive strength, b-axis (positive value).
        """ # nopep8
        return self._cards[5].get_value("yc")

    @yc.setter
    def yc(self, value: float) -> None:
        """Set the yc property."""
        self._cards[5].set_value("yc", value)

    @property
    def yt(self) -> typing.Optional[float]:
        """Get or set the Transverse tensile strength, b-axis.
        """ # nopep8
        return self._cards[5].get_value("yt")

    @yt.setter
    def yt(self, value: float) -> None:
        """Set the yt property."""
        self._cards[5].set_value("yt", value)

    @property
    def sl(self) -> typing.Optional[float]:
        """Get or set the Shear strength, ab plane.
        """ # nopep8
        return self._cards[5].get_value("sl")

    @sl.setter
    def sl(self, value: float) -> None:
        """Set the sl property."""
        self._cards[5].set_value("sl", value)

    @property
    def xco(self) -> typing.Optional[float]:
        """Get or set the Longitudinal compressive strength at inflection point (positive value).
        """ # nopep8
        return self._cards[5].get_value("xco")

    @xco.setter
    def xco(self, value: float) -> None:
        """Set the xco property."""
        self._cards[5].set_value("xco", value)

    @property
    def xto(self) -> typing.Optional[float]:
        """Get or set the Longitudinal tensile strength at inflection point.
        """ # nopep8
        return self._cards[5].get_value("xto")

    @xto.setter
    def xto(self, value: float) -> None:
        """Set the xto property."""
        self._cards[5].set_value("xto", value)

    @property
    def fio(self) -> float:
        """Get or set the Fracture angle in pure transverse compression (in degrees, default = 53.0).
        """ # nopep8
        return self._cards[6].get_value("fio")

    @fio.setter
    def fio(self, value: float) -> None:
        """Set the fio property."""
        self._cards[6].set_value("fio", value)

    @property
    def sigy(self) -> typing.Optional[float]:
        """Get or set the In-plane shear yield stress.
        """ # nopep8
        return self._cards[6].get_value("sigy")

    @sigy.setter
    def sigy(self, value: float) -> None:
        """Set the sigy property."""
        self._cards[6].set_value("sigy", value)

    @property
    def etan(self) -> typing.Optional[float]:
        """Get or set the Tangent modulus for in-plane shear plasticity.
        GT.0.0: constant value
        LT.0.0: Load curve ID = (-ETAN) which defines the tangent modulus for in-plane shear plasticity vs. strain rate.
        """ # nopep8
        return self._cards[6].get_value("etan")

    @etan.setter
    def etan(self, value: float) -> None:
        """Set the etan property."""
        self._cards[6].set_value("etan", value)

    @property
    def beta(self) -> typing.Optional[float]:
        """Get or set the Hardening parameter for in-plane shear plasticity (0.0 <= BETA <=	1.0).
        EQ.0.0: Pure kinematic hardening
        EQ.1.0: Pure isotropic hardening	0.0<BETA<1.0: mixed hardening.
        """ # nopep8
        return self._cards[6].get_value("beta")

    @beta.setter
    def beta(self, value: float) -> None:
        """Set the beta property."""
        self._cards[6].set_value("beta", value)

    @property
    def pfl(self) -> typing.Optional[float]:
        """Get or set the Percentage of layers which must fail until crashfront is initiated. E.g.
        |PFL|=80.0, then 80 % of layers must fail until strengths are reduced
        in neighboring elements. Default: all layers must fail. A single layer
        fails if 1 in-plane IP fails (PFL>0) or if 4 in-plane IPs fail (PFL<0).
        """ # nopep8
        return self._cards[6].get_value("pfl")

    @pfl.setter
    def pfl(self, value: float) -> None:
        """Set the pfl property."""
        self._cards[6].set_value("pfl", value)

    @property
    def puck(self) -> float:
        """Get or set the Flag for evaluation and post-processing of Puck's inter-fiber-failure
        criterion (IFF, see Puck, Kopp and Knops [2002]).
        EQ.0.0: no evaluation of Puck's IFF-criterion.
        EQ.1.0: Puck's IFF-criterion will be evaluated.
        """ # nopep8
        return self._cards[6].get_value("puck")

    @puck.setter
    def puck(self, value: float) -> None:
        """Set the puck property."""
        if value not in [0.0, 1.0, None]:
            raise Exception("""puck must be `None` or one of {0.0,1.0}.""")
        self._cards[6].set_value("puck", value)

    @property
    def soft(self) -> float:
        """Get or set the Softening reduction factor for material strength in crashfront	elements (default = 1.0).
        """ # nopep8
        return self._cards[6].get_value("soft")

    @soft.setter
    def soft(self, value: float) -> None:
        """Set the soft property."""
        self._cards[6].set_value("soft", value)

    @property
    def dt(self) -> typing.Optional[float]:
        """Get or set the Strain rate averaging option:
        EQ.0.0:	strain rate is evaluated using a running average.
        LT.0.0 : strain rate is evaluated using average of last 11 time steps.
        GT.0.0 : strain rate is averaged over the last DT time units.
        """ # nopep8
        return self._cards[6].get_value("dt")

    @dt.setter
    def dt(self, value: float) -> None:
        """Set the dt property."""
        self._cards[6].set_value("dt", value)

    @property
    def epsf23(self) -> typing.Optional[float]:
        """Get or set the Damage initiation transverse shear strain (23-plane)
        """ # nopep8
        return self._cards[7].get_value("epsf23")

    @epsf23.setter
    def epsf23(self, value: float) -> None:
        """Set the epsf23 property."""
        self._cards[7].set_value("epsf23", value)

    @property
    def epsr23(self) -> typing.Optional[float]:
        """Get or set the Final rupture transverse shear strain (23-plane)
        """ # nopep8
        return self._cards[7].get_value("epsr23")

    @epsr23.setter
    def epsr23(self, value: float) -> None:
        """Set the epsr23 property."""
        self._cards[7].set_value("epsr23", value)

    @property
    def tsmd23(self) -> typing.Optional[float]:
        """Get or set the Transverse shear maximum damage; default‌ = 0.90 (23-plane).
        """ # nopep8
        return self._cards[7].get_value("tsmd23")

    @tsmd23.setter
    def tsmd23(self, value: float) -> None:
        """Set the tsmd23 property."""
        self._cards[7].set_value("tsmd23", value)

    @property
    def epsf31(self) -> typing.Optional[float]:
        """Get or set the Damage initiation transverse shear strain (31-plane)
        """ # nopep8
        return self._cards[7].get_value("epsf31")

    @epsf31.setter
    def epsf31(self, value: float) -> None:
        """Set the epsf31 property."""
        self._cards[7].set_value("epsf31", value)

    @property
    def epsr31(self) -> typing.Optional[float]:
        """Get or set the Final rupture transverse shear strain (31-plane)
        """ # nopep8
        return self._cards[7].get_value("epsr31")

    @epsr31.setter
    def epsr31(self, value: float) -> None:
        """Set the epsr31 property."""
        self._cards[7].set_value("epsr31", value)

    @property
    def tsmd31(self) -> typing.Optional[float]:
        """Get or set the Transverse shear maximum damage; default‌ = 0.90 (31-plane)
        """ # nopep8
        return self._cards[7].get_value("tsmd31")

    @tsmd31.setter
    def tsmd31(self, value: float) -> None:
        """Set the tsmd31 property."""
        self._cards[7].set_value("tsmd31", value)

    @property
    def title(self) -> typing.Optional[str]:
        """Get or set the Additional title line
        """ # nopep8
        return self._cards[8].cards[0].get_value("title")

    @title.setter
    def title(self, value: str) -> None:
        """Set the title property."""
        self._cards[8].cards[0].set_value("title", value)

        if value:
            self.activate_option("TITLE")

