# 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 MatTabulatedJohnsonCookOrthoPlasticity 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
from ansys.dyna.core.lib.keyword_base import LinkType
from ansys.dyna.core.keywords.keyword_classes.auto.define.define_curve import DefineCurve

_MATTABULATEDJOHNSONCOOKORTHOPLASTICITY_CARD0 = (
    FieldSchema("mid", int, 0, 10, None),
    FieldSchema("ro", float, 10, 10, None),
    FieldSchema("e", float, 20, 10, None),
    FieldSchema("pr", float, 30, 10, None),
    FieldSchema("cp", float, 40, 10, None),
    FieldSchema("tr", float, 50, 10, None),
    FieldSchema("beta", float, 60, 10, 1.0),
    FieldSchema("numint", float, 70, 10, 1.0),
)

_MATTABULATEDJOHNSONCOOKORTHOPLASTICITY_CARD1 = (
    FieldSchema("lct00r", int, 0, 10, 0),
    FieldSchema("lct00t", int, 10, 10, 0),
    FieldSchema("lcf", int, 20, 10, 0),
    FieldSchema("lcg", int, 30, 10, 0),
    FieldSchema("lch", int, 40, 10, 0),
    FieldSchema("lci", int, 50, 10, 0),
)

_MATTABULATEDJOHNSONCOOKORTHOPLASTICITY_CARD2 = (
    FieldSchema("lcc00r", float, 0, 10, None),
    FieldSchema("lcc00t", float, 10, 10, None),
    FieldSchema("lcs45r", float, 20, 10, None),
    FieldSchema("lcs45t", float, 30, 10, None),
    FieldSchema("iflag", int, 40, 10, 0),
    FieldSchema("sfiepm", int, 50, 10, 1),
    FieldSchema("niter", int, 60, 10, 100),
    FieldSchema("aopt", float, 70, 10, None),
)

_MATTABULATEDJOHNSONCOOKORTHOPLASTICITY_CARD3 = (
    FieldSchema("lct90r", int, 0, 10, 0),
    FieldSchema("lct45r", int, 10, 10, 0),
    FieldSchema("lctthr", int, 20, 10, 0),
    FieldSchema("lcc90r", int, 30, 10, 0),
    FieldSchema("lcc45r", int, 40, 10, 0),
    FieldSchema("lccth", int, 50, 10, 0),
)

_MATTABULATEDJOHNSONCOOKORTHOPLASTICITY_CARD4 = (
    FieldSchema("lct90t", int, 0, 10, 0),
    FieldSchema("lct45t", int, 10, 10, 0),
    FieldSchema("lcttht", int, 20, 10, 0),
    FieldSchema("lcc90t", int, 30, 10, 0),
    FieldSchema("lcc45t", int, 40, 10, 0),
    FieldSchema("lcctht", int, 50, 10, 0),
)

_MATTABULATEDJOHNSONCOOKORTHOPLASTICITY_CARD5 = (
    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("macf", float, 60, 10, 1.0),
)

_MATTABULATEDJOHNSONCOOKORTHOPLASTICITY_CARD6 = (
    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("beta", float, 60, 10, None),
)

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

class MatTabulatedJohnsonCookOrthoPlasticity(KeywordBase):
    """DYNA MAT_TABULATED_JOHNSON_COOK_ORTHO_PLASTICITY keyword"""

    keyword = "MAT"
    subkeyword = "TABULATED_JOHNSON_COOK_ORTHO_PLASTICITY"
    option_specs = [
        OptionSpec("TITLE", -1, 1),
    ]
    _link_fields = {
        "lct00r": LinkType.DEFINE_CURVE,
        "lct00t": LinkType.DEFINE_CURVE,
        "lcf": LinkType.DEFINE_CURVE,
        "lcg": LinkType.DEFINE_CURVE,
        "lch": LinkType.DEFINE_CURVE,
        "lci": LinkType.DEFINE_CURVE,
        "lct90r": LinkType.DEFINE_CURVE,
        "lct45r": LinkType.DEFINE_CURVE,
        "lctthr": LinkType.DEFINE_CURVE,
        "lcc90r": LinkType.DEFINE_CURVE,
        "lcc45r": LinkType.DEFINE_CURVE,
        "lccth": LinkType.DEFINE_CURVE,
        "lct90t": LinkType.DEFINE_CURVE,
        "lct45t": LinkType.DEFINE_CURVE,
        "lcttht": LinkType.DEFINE_CURVE,
        "lcc90t": LinkType.DEFINE_CURVE,
        "lcc45t": LinkType.DEFINE_CURVE,
        "lcctht": LinkType.DEFINE_CURVE,
    }

    def __init__(self, **kwargs):
        """Initialize the MatTabulatedJohnsonCookOrthoPlasticity class."""
        super().__init__(**kwargs)
        kwargs["parent"] = self
        self._cards = [
            Card.from_field_schemas_with_defaults(
                _MATTABULATEDJOHNSONCOOKORTHOPLASTICITY_CARD0,
                **kwargs,
            ),            Card.from_field_schemas_with_defaults(
                _MATTABULATEDJOHNSONCOOKORTHOPLASTICITY_CARD1,
                **kwargs,
            ),            Card.from_field_schemas_with_defaults(
                _MATTABULATEDJOHNSONCOOKORTHOPLASTICITY_CARD2,
                **kwargs,
            ),            Card.from_field_schemas_with_defaults(
                _MATTABULATEDJOHNSONCOOKORTHOPLASTICITY_CARD3,
                **kwargs,
            ),            Card.from_field_schemas_with_defaults(
                _MATTABULATEDJOHNSONCOOKORTHOPLASTICITY_CARD4,
                **kwargs,
            ),            Card.from_field_schemas_with_defaults(
                _MATTABULATEDJOHNSONCOOKORTHOPLASTICITY_CARD5,
                **kwargs,
            ),            Card.from_field_schemas_with_defaults(
                _MATTABULATEDJOHNSONCOOKORTHOPLASTICITY_CARD6,
                **kwargs,
            ),            OptionCardSet(
                option_spec = MatTabulatedJohnsonCookOrthoPlasticity.option_specs[0],
                cards = [
                    Card.from_field_schemas_with_defaults(
                        _MATTABULATEDJOHNSONCOOKORTHOPLASTICITY_OPTION0_CARD0,
                        **kwargs,
                    ),
                ],
                **kwargs
            ),
        ]
    @property
    def mid(self) -> typing.Optional[int]:
        """Get or set the Material identification. A unique number has to be used.
        """ # 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 e(self) -> typing.Optional[float]:
        """Get or set the Young's modulus.
        """ # nopep8
        return self._cards[0].get_value("e")

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

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

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

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

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

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

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

    @property
    def beta(self) -> float:
        """Get or set the Amount of plastic work converted into heat
        """ # nopep8
        return self._cards[0].get_value("beta")

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

    @property
    def numint(self) -> float:
        """Get or set the Number of integration points which must fail before the element is deleted. Available for shells and solids.
        LT.0.0: |NUMINT| is percentage of integration points/layers which must fail before element fails. For fully integrated shells, a methodology is used where a layer fails if one integrationpoint fails and then the given percentage of layers must fail before the element fails.
        """ # nopep8
        return self._cards[0].get_value("numint")

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

    @property
    def lct00r(self) -> int:
        """Get or set the Load curve ID or Table ID. The load curve ID defines effective stress as a function of effective plastic strain. The table ID defines for each plastic strain rate value a load curve ID giving the (isothermal) effective stress versus effective plastic strain for that rate.
        """ # nopep8
        return self._cards[1].get_value("lct00r")

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

    @property
    def lct00t(self) -> int:
        """Get or set the Table ID defining for each temperature value a load curve ID giving the (quasi-static) effective stress versus effective plastic strain for that temperature.
        """ # nopep8
        return self._cards[1].get_value("lct00t")

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

    @property
    def lcf(self) -> int:
        """Get or set the Load curve ID or Table ID. The load curve ID defines plastic failure strain as a function of triaxiality. The table ID defines for each Lode angle a load curve ID giving the plastic failure strain versus triaxiality for that Lode angle. (Table option only for solids and not yet generally supported).
        """ # nopep8
        return self._cards[1].get_value("lcf")

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

    @property
    def lcg(self) -> int:
        """Get or set the Load curve ID defining plastic failure strain as a function of strain rate.
        """ # nopep8
        return self._cards[1].get_value("lcg")

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

    @property
    def lch(self) -> int:
        """Get or set the Load curve ID defining plastic failure strain as a function of temperature
        """ # nopep8
        return self._cards[1].get_value("lch")

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

    @property
    def lci(self) -> int:
        """Get or set the Load curve ID defining plastic failure strain as a function of element size..
        """ # nopep8
        return self._cards[1].get_value("lci")

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

    @property
    def lcc00r(self) -> typing.Optional[float]:
        """Get or set the Table ID. The curves in this table define compressive yield stress as a function of plastic strain or effective plastic strain (see IFLAG). The table ID defines for each plastic strain rate value or effective plastic strain rate value a load curve ID giving the (isothermal) compressive yield stress versus plastic strain or effective plastic strain for that rate.
        """ # nopep8
        return self._cards[2].get_value("lcc00r")

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

    @property
    def lcc00t(self) -> typing.Optional[float]:
        """Get or set the Table ID defining for each temperature value a load curve ID giving the (quasi-static) compressive yield stress versus strain for that temperature. The curves in this table define compressive yield stress as a function of plastic strain or effective plastic strain (see IFLAG).
        """ # nopep8
        return self._cards[2].get_value("lcc00t")

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

    @property
    def lcs45r(self) -> typing.Optional[float]:
        """Get or set the Table ID. The load curves define shear yield stress in function of plastic strain or effective plastic strain (see IFLAG).The table ID defines for each plastic strain rate value or effective plastic strain rate value a load curve ID giving the (isothermal) shear yield stress versus plastic strain or effective plastic strain for that rate.
        """ # nopep8
        return self._cards[2].get_value("lcs45r")

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

    @property
    def lcs45t(self) -> typing.Optional[float]:
        """Get or set the Table ID defining for each temperature value a load curve ID giving the (quasi-static) shear yield stress versus strain for that temperature. The load curves define shear yield stress as a function of plastic strain or effective plastic strain (see IFLAG).
        """ # nopep8
        return self._cards[2].get_value("lcs45t")

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

    @property
    def iflag(self) -> int:
        """Get or set the Flag to specify abscissa for LCCR, LCCT, LCSR, LCST:
        EQ.0.0:	Compressive and shear yields are given in a function of plastic strain (default).
        EQ.1.0:	Compressive and shear strain are given in function of effective plastic strain.
        """ # nopep8
        return self._cards[2].get_value("iflag")

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

    @property
    def sfiepm(self) -> int:
        """Get or set the Scale factor on the initial estimate of the plastic multiplier.
        """ # nopep8
        return self._cards[2].get_value("sfiepm")

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

    @property
    def niter(self) -> int:
        """Get or set the Maximum number of iterations for the plasticity algorithm.
        """ # nopep8
        return self._cards[2].get_value("niter")

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

    @property
    def aopt(self) -> typing.Optional[float]:
        """Get or set the Material axes option (see MAT_OPTIONTROPIC_ELASTIC, particularly the Material Directions section, for details):
        EQ.0.0:	Locally orthotropic with material axes determined by element nodes 1, 2,and 4, as with* DEFINE_COORDINATE_NODES.
        EQ.1.0 : Locally orthotropic with material axes determined by a point, P, in spaceand the global location of the element center; this is the a - direction.
        EQ.2.0:	Globally orthotropic with material axes determined by vectors defined below, as with* DEFINE_COORDINATE_VECTOR
        EQ.3.0 : Locally orthotropic material axes determined by a vector v and the normal vector to the plane of the element.The plane of a solid element is the midsurface between the inner surface and outer surface defined by the first four nodes and the last four nodes of the connectivity of the element, respectively.Thus, AOPT = 3 is only available for hexahedrons.a is determined by taking the cross product of v with the normal vector, b is determined by taking the cross product of the normal vector with a,and c is the normal vector.Then aand b are rotated about c by an angle.The angle may be set in the keyword input for the element or in the input for this keyword(see MANGLE).Note that the material axes may be switched depending on the choice of MACF.The switch may occur before or after applying the angle depending on the value of MACF.
        EQ.4.0 : Locally orthotropic in a cylindrical coordinate system with the material axes determined by a vector v,and an originating point, P, which define the centerline axis.
        LT.0.0 : The absolute value of AOPT is a coordinate system ID number(CID on * DEFINE_COORDINATE_OPTION).
        """ # nopep8
        return self._cards[2].get_value("aopt")

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

    @property
    def lct90r(self) -> int:
        """Get or set the Table ID defining for each plastic strain rate value a load curve ID giving the (isothermal) tensile yield  stress versus  plastic strain for that rate in the 90 degree direction.
        """ # nopep8
        return self._cards[3].get_value("lct90r")

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

    @property
    def lct45r(self) -> int:
        """Get or set the Table ID defining for each plastic strain rate value a load curve ID giving the (isothermal) tensile yield  stress versus plastic strain for that rate in the 45 degree direction.
        """ # nopep8
        return self._cards[3].get_value("lct45r")

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

    @property
    def lctthr(self) -> int:
        """Get or set the Table ID defining for each plastic strain rate value a load curve ID giving the (isothermal) tensile yield stress versus plastic strain for that rate in the thickness degree direction.
        """ # nopep8
        return self._cards[3].get_value("lctthr")

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

    @property
    def lcc90r(self) -> int:
        """Get or set the Table ID defining for each plastic strain rate value a load curve ID giving the (isothermal) compressive yield  stress versus  plastic strain for that rate in the 90 degree direction.
        """ # nopep8
        return self._cards[3].get_value("lcc90r")

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

    @property
    def lcc45r(self) -> int:
        """Get or set the Table ID defining for each plastic strain rate value a load curve ID giving the (isothermal) compressive yield  stress versus plastic strain for that rate in the 45 degree direction.
        """ # nopep8
        return self._cards[3].get_value("lcc45r")

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

    @property
    def lccth(self) -> int:
        """Get or set the Table ID defining for each plastic strain rate value a load curve ID giving the (isothermal) compressive yield stress versus plastic strain for that rate in the thickness degree direction.
        """ # nopep8
        return self._cards[3].get_value("lccth")

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

    @property
    def lct90t(self) -> int:
        """Get or set the Table ID defining for each temperature value a load curve ID giving the (quasistatic) tensile yield  stress versus  plastic strain for that rate in the 90 degree direction.
        """ # nopep8
        return self._cards[4].get_value("lct90t")

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

    @property
    def lct45t(self) -> int:
        """Get or set the Table ID defining for each temperature value a load curve ID giving the (quasistatic) tensile yield  stress versus plastic strain for that rate in the 45 degree direction.
        """ # nopep8
        return self._cards[4].get_value("lct45t")

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

    @property
    def lcttht(self) -> int:
        """Get or set the Table ID defining for each temperature value a load curve ID giving the (quasistatic) tensile yield stress versus plastic strain for that rate in the thickness degree direction.
        """ # nopep8
        return self._cards[4].get_value("lcttht")

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

    @property
    def lcc90t(self) -> int:
        """Get or set the Table ID defining for each temperature value a load curve ID giving the (quasistatic) compressive yield  stress versus  plastic strain for that rate in the 90 degree direction.
        """ # nopep8
        return self._cards[4].get_value("lcc90t")

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

    @property
    def lcc45t(self) -> int:
        """Get or set the Table ID defining for each temperature value a load curve ID giving the (quasistatic) compressive yield  stress versus plastic strain for that rate in the 45 degree direction.
        """ # nopep8
        return self._cards[4].get_value("lcc45t")

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

    @property
    def lcctht(self) -> int:
        """Get or set the Table ID defining for each temperature value a load curve ID giving the (quasistatic) compressive yield stress versus plastic strain for that rate in the thickness degree direction.
        """ # nopep8
        return self._cards[4].get_value("lcctht")

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

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

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

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

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

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

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

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

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

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

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

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

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

    @property
    def macf(self) -> float:
        """Get or set the Material axes change flag for solid elements:
        EQ. - 4:	Switch material axes b and c before BETA or MANGLE rotation
        EQ. - 3 : Switch material axes a and c before BETA or MANGLE rotation
        EQ. - 2 : Switch material axes a and b before BETA or MANGLE rotation
        EQ.1 : No change, default
        EQ.2 : Switch material axes a and b after BETA or MANGLE rotation
        EQ.3 : Switch material axes a and c after BETA or MANGLE rotation
        EQ.4 : Switch material axes b and c after BETA or MANGLE rotation
        Figure Error!Reference source not found.indicates when LS - DYNA applies MACF during the process to obtain the final material axes.If BETA on * ELEMENT_SOLID_{OPTION} is defined, then BETA is used for the rotation for all AOPT options.Otherwise, for AOPT = 3, MANGLE input on Card 3 rotates the axes.For all other values of AOPT, the material axes will be switched as specified by MACF, but no rotation will be performed.
        """ # nopep8
        return self._cards[5].get_value("macf")

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

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

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

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

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

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

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

    @property
    def d1(self) -> typing.Optional[float]:
        """Get or set the Components of vector dfor AOPT = 2.
        """ # nopep8
        return self._cards[6].get_value("d1")

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

    @property
    def d2(self) -> typing.Optional[float]:
        """Get or set the Components of vector dfor AOPT = 2.
        """ # nopep8
        return self._cards[6].get_value("d2")

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

    @property
    def d3(self) -> typing.Optional[float]:
        """Get or set the Components of vector dfor AOPT = 2.
        """ # nopep8
        return self._cards[6].get_value("d3")

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

    @property
    def beta(self) -> typing.Optional[float]:
        """Get or set the Material angle in degrees for AOPT=0 and 3, may be overridden on the element card, see *ELEMENT_SHELL_BETA.
        """ # 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 title(self) -> typing.Optional[str]:
        """Get or set the Additional title line
        """ # nopep8
        return self._cards[7].cards[0].get_value("title")

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

        if value:
            self.activate_option("TITLE")

    @property
    def lct00r_link(self) -> typing.Optional[DefineCurve]:
        """Get the DefineCurve object for lct00r."""
        if self.deck is None:
            return None
        for kwd in self.deck.get_kwds_by_full_type("DEFINE", "CURVE"):
            if kwd.lcid == self.lct00r:
                return kwd
        return None

    @lct00r_link.setter
    def lct00r_link(self, value: DefineCurve) -> None:
        """Set the DefineCurve object for lct00r."""
        self.lct00r = value.lcid

    @property
    def lct00t_link(self) -> typing.Optional[DefineCurve]:
        """Get the DefineCurve object for lct00t."""
        if self.deck is None:
            return None
        for kwd in self.deck.get_kwds_by_full_type("DEFINE", "CURVE"):
            if kwd.lcid == self.lct00t:
                return kwd
        return None

    @lct00t_link.setter
    def lct00t_link(self, value: DefineCurve) -> None:
        """Set the DefineCurve object for lct00t."""
        self.lct00t = value.lcid

    @property
    def lcf_link(self) -> typing.Optional[DefineCurve]:
        """Get the DefineCurve object for lcf."""
        if self.deck is None:
            return None
        for kwd in self.deck.get_kwds_by_full_type("DEFINE", "CURVE"):
            if kwd.lcid == self.lcf:
                return kwd
        return None

    @lcf_link.setter
    def lcf_link(self, value: DefineCurve) -> None:
        """Set the DefineCurve object for lcf."""
        self.lcf = value.lcid

    @property
    def lcg_link(self) -> typing.Optional[DefineCurve]:
        """Get the DefineCurve object for lcg."""
        if self.deck is None:
            return None
        for kwd in self.deck.get_kwds_by_full_type("DEFINE", "CURVE"):
            if kwd.lcid == self.lcg:
                return kwd
        return None

    @lcg_link.setter
    def lcg_link(self, value: DefineCurve) -> None:
        """Set the DefineCurve object for lcg."""
        self.lcg = value.lcid

    @property
    def lch_link(self) -> typing.Optional[DefineCurve]:
        """Get the DefineCurve object for lch."""
        if self.deck is None:
            return None
        for kwd in self.deck.get_kwds_by_full_type("DEFINE", "CURVE"):
            if kwd.lcid == self.lch:
                return kwd
        return None

    @lch_link.setter
    def lch_link(self, value: DefineCurve) -> None:
        """Set the DefineCurve object for lch."""
        self.lch = value.lcid

    @property
    def lci_link(self) -> typing.Optional[DefineCurve]:
        """Get the DefineCurve object for lci."""
        if self.deck is None:
            return None
        for kwd in self.deck.get_kwds_by_full_type("DEFINE", "CURVE"):
            if kwd.lcid == self.lci:
                return kwd
        return None

    @lci_link.setter
    def lci_link(self, value: DefineCurve) -> None:
        """Set the DefineCurve object for lci."""
        self.lci = value.lcid

    @property
    def lct90r_link(self) -> typing.Optional[DefineCurve]:
        """Get the DefineCurve object for lct90r."""
        if self.deck is None:
            return None
        for kwd in self.deck.get_kwds_by_full_type("DEFINE", "CURVE"):
            if kwd.lcid == self.lct90r:
                return kwd
        return None

    @lct90r_link.setter
    def lct90r_link(self, value: DefineCurve) -> None:
        """Set the DefineCurve object for lct90r."""
        self.lct90r = value.lcid

    @property
    def lct45r_link(self) -> typing.Optional[DefineCurve]:
        """Get the DefineCurve object for lct45r."""
        if self.deck is None:
            return None
        for kwd in self.deck.get_kwds_by_full_type("DEFINE", "CURVE"):
            if kwd.lcid == self.lct45r:
                return kwd
        return None

    @lct45r_link.setter
    def lct45r_link(self, value: DefineCurve) -> None:
        """Set the DefineCurve object for lct45r."""
        self.lct45r = value.lcid

    @property
    def lctthr_link(self) -> typing.Optional[DefineCurve]:
        """Get the DefineCurve object for lctthr."""
        if self.deck is None:
            return None
        for kwd in self.deck.get_kwds_by_full_type("DEFINE", "CURVE"):
            if kwd.lcid == self.lctthr:
                return kwd
        return None

    @lctthr_link.setter
    def lctthr_link(self, value: DefineCurve) -> None:
        """Set the DefineCurve object for lctthr."""
        self.lctthr = value.lcid

    @property
    def lcc90r_link(self) -> typing.Optional[DefineCurve]:
        """Get the DefineCurve object for lcc90r."""
        if self.deck is None:
            return None
        for kwd in self.deck.get_kwds_by_full_type("DEFINE", "CURVE"):
            if kwd.lcid == self.lcc90r:
                return kwd
        return None

    @lcc90r_link.setter
    def lcc90r_link(self, value: DefineCurve) -> None:
        """Set the DefineCurve object for lcc90r."""
        self.lcc90r = value.lcid

    @property
    def lcc45r_link(self) -> typing.Optional[DefineCurve]:
        """Get the DefineCurve object for lcc45r."""
        if self.deck is None:
            return None
        for kwd in self.deck.get_kwds_by_full_type("DEFINE", "CURVE"):
            if kwd.lcid == self.lcc45r:
                return kwd
        return None

    @lcc45r_link.setter
    def lcc45r_link(self, value: DefineCurve) -> None:
        """Set the DefineCurve object for lcc45r."""
        self.lcc45r = value.lcid

    @property
    def lccth_link(self) -> typing.Optional[DefineCurve]:
        """Get the DefineCurve object for lccth."""
        if self.deck is None:
            return None
        for kwd in self.deck.get_kwds_by_full_type("DEFINE", "CURVE"):
            if kwd.lcid == self.lccth:
                return kwd
        return None

    @lccth_link.setter
    def lccth_link(self, value: DefineCurve) -> None:
        """Set the DefineCurve object for lccth."""
        self.lccth = value.lcid

    @property
    def lct90t_link(self) -> typing.Optional[DefineCurve]:
        """Get the DefineCurve object for lct90t."""
        if self.deck is None:
            return None
        for kwd in self.deck.get_kwds_by_full_type("DEFINE", "CURVE"):
            if kwd.lcid == self.lct90t:
                return kwd
        return None

    @lct90t_link.setter
    def lct90t_link(self, value: DefineCurve) -> None:
        """Set the DefineCurve object for lct90t."""
        self.lct90t = value.lcid

    @property
    def lct45t_link(self) -> typing.Optional[DefineCurve]:
        """Get the DefineCurve object for lct45t."""
        if self.deck is None:
            return None
        for kwd in self.deck.get_kwds_by_full_type("DEFINE", "CURVE"):
            if kwd.lcid == self.lct45t:
                return kwd
        return None

    @lct45t_link.setter
    def lct45t_link(self, value: DefineCurve) -> None:
        """Set the DefineCurve object for lct45t."""
        self.lct45t = value.lcid

    @property
    def lcttht_link(self) -> typing.Optional[DefineCurve]:
        """Get the DefineCurve object for lcttht."""
        if self.deck is None:
            return None
        for kwd in self.deck.get_kwds_by_full_type("DEFINE", "CURVE"):
            if kwd.lcid == self.lcttht:
                return kwd
        return None

    @lcttht_link.setter
    def lcttht_link(self, value: DefineCurve) -> None:
        """Set the DefineCurve object for lcttht."""
        self.lcttht = value.lcid

    @property
    def lcc90t_link(self) -> typing.Optional[DefineCurve]:
        """Get the DefineCurve object for lcc90t."""
        if self.deck is None:
            return None
        for kwd in self.deck.get_kwds_by_full_type("DEFINE", "CURVE"):
            if kwd.lcid == self.lcc90t:
                return kwd
        return None

    @lcc90t_link.setter
    def lcc90t_link(self, value: DefineCurve) -> None:
        """Set the DefineCurve object for lcc90t."""
        self.lcc90t = value.lcid

    @property
    def lcc45t_link(self) -> typing.Optional[DefineCurve]:
        """Get the DefineCurve object for lcc45t."""
        if self.deck is None:
            return None
        for kwd in self.deck.get_kwds_by_full_type("DEFINE", "CURVE"):
            if kwd.lcid == self.lcc45t:
                return kwd
        return None

    @lcc45t_link.setter
    def lcc45t_link(self, value: DefineCurve) -> None:
        """Set the DefineCurve object for lcc45t."""
        self.lcc45t = value.lcid

    @property
    def lcctht_link(self) -> typing.Optional[DefineCurve]:
        """Get the DefineCurve object for lcctht."""
        if self.deck is None:
            return None
        for kwd in self.deck.get_kwds_by_full_type("DEFINE", "CURVE"):
            if kwd.lcid == self.lcctht:
                return kwd
        return None

    @lcctht_link.setter
    def lcctht_link(self, value: DefineCurve) -> None:
        """Set the DefineCurve object for lcctht."""
        self.lcctht = value.lcid

