# 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 MatReinforcedThermoplastic 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

_MATREINFORCEDTHERMOPLASTIC_CARD0 = (
    FieldSchema("mid", int, 0, 10, None),
    FieldSchema("ro", float, 10, 10, None),
    FieldSchema("em", float, 20, 10, None),
    FieldSchema("lcem", int, 30, 10, None),
    FieldSchema("prm", float, 40, 10, None),
    FieldSchema("lcprm", int, 50, 10, None),
    FieldSchema("lcsigy", int, 60, 10, None),
    FieldSchema("beta", float, 70, 10, None),
)

_MATREINFORCEDTHERMOPLASTIC_CARD1 = (
    FieldSchema("nfib", int, 0, 10, None),
    FieldSchema("aopt", float, 10, 10, None),
    FieldSchema("unused", int, 20, 10, None),
    FieldSchema("unused", int, 30, 10, None),
    FieldSchema("unused", int, 40, 10, None),
    FieldSchema("a1", float, 50, 10, None),
    FieldSchema("a2", float, 60, 10, None),
    FieldSchema("a3", float, 70, 10, None),
)

_MATREINFORCEDTHERMOPLASTIC_CARD2 = (
    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("mangl", float, 60, 10, None),
    FieldSchema("thick", float, 70, 10, None),
)

_MATREINFORCEDTHERMOPLASTIC_CARD3 = (
    FieldSchema("idf1", int, 0, 10, None),
    FieldSchema("alph1", float, 10, 10, None),
    FieldSchema("ef1", float, 20, 10, None),
    FieldSchema("lcef1", int, 30, 10, None),
    FieldSchema("g23_1", float, 40, 10, None),
    FieldSchema("g31_1", float, 50, 10, None),
)

_MATREINFORCEDTHERMOPLASTIC_CARD4 = (
    FieldSchema("g12", float, 0, 10, None),
    FieldSchema("lcg12", int, 10, 10, None),
    FieldSchema("aloc12", float, 20, 10, None),
    FieldSchema("gloc12", float, 30, 10, None),
    FieldSchema("meth12", int, 40, 10, None),
)

_MATREINFORCEDTHERMOPLASTIC_CARD5 = (
    FieldSchema("idf2", int, 0, 10, None),
    FieldSchema("alph2", float, 10, 10, None),
    FieldSchema("ef2", float, 20, 10, None),
    FieldSchema("lcef2", int, 30, 10, None),
    FieldSchema("g23_2", float, 40, 10, None),
    FieldSchema("g31_2", float, 50, 10, None),
)

_MATREINFORCEDTHERMOPLASTIC_CARD6 = (
    FieldSchema("g23", float, 0, 10, None),
    FieldSchema("lcg23", int, 10, 10, None),
    FieldSchema("aloc23", float, 20, 10, None),
    FieldSchema("gloc23", float, 30, 10, None),
    FieldSchema("meth23", int, 40, 10, None),
)

_MATREINFORCEDTHERMOPLASTIC_CARD7 = (
    FieldSchema("idf3", int, 0, 10, None),
    FieldSchema("alph3", float, 10, 10, None),
    FieldSchema("ef3", float, 20, 10, None),
    FieldSchema("lcef3", int, 30, 10, None),
    FieldSchema("g23_3", float, 40, 10, None),
    FieldSchema("g31_3", float, 50, 10, None),
)

_MATREINFORCEDTHERMOPLASTIC_CARD8 = (
    FieldSchema("postv", int, 0, 10, None),
    FieldSchema("ihis", float, 10, 10, None),
)

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

class MatReinforcedThermoplastic(KeywordBase):
    """DYNA MAT_REINFORCED_THERMOPLASTIC keyword"""

    keyword = "MAT"
    subkeyword = "REINFORCED_THERMOPLASTIC"
    option_specs = [
        OptionSpec("TITLE", -1, 1),
    ]
    _link_fields = {
        "lcem": LinkType.DEFINE_CURVE,
        "lcprm": LinkType.DEFINE_CURVE,
        "lcef1": LinkType.DEFINE_CURVE,
        "lcg12": LinkType.DEFINE_CURVE,
        "lcef2": LinkType.DEFINE_CURVE,
        "lcg23": LinkType.DEFINE_CURVE,
        "lcef3": LinkType.DEFINE_CURVE,
        "lcsigy": LinkType.DEFINE_CURVE_OR_TABLE,
    }

    def __init__(self, **kwargs):
        """Initialize the MatReinforcedThermoplastic class."""
        super().__init__(**kwargs)
        kwargs["parent"] = self
        self._cards = [
            Card.from_field_schemas_with_defaults(
                _MATREINFORCEDTHERMOPLASTIC_CARD0,
                **kwargs,
            ),            Card.from_field_schemas_with_defaults(
                _MATREINFORCEDTHERMOPLASTIC_CARD1,
                **kwargs,
            ),            Card.from_field_schemas_with_defaults(
                _MATREINFORCEDTHERMOPLASTIC_CARD2,
                **kwargs,
            ),            Card.from_field_schemas_with_defaults(
                _MATREINFORCEDTHERMOPLASTIC_CARD3,
                **kwargs,
            ),            Card.from_field_schemas_with_defaults(
                _MATREINFORCEDTHERMOPLASTIC_CARD4,
                **kwargs,
            ),            Card.from_field_schemas_with_defaults(
                _MATREINFORCEDTHERMOPLASTIC_CARD5,
                **kwargs,
            ),            Card.from_field_schemas_with_defaults(
                _MATREINFORCEDTHERMOPLASTIC_CARD6,
                **kwargs,
            ),            Card.from_field_schemas_with_defaults(
                _MATREINFORCEDTHERMOPLASTIC_CARD7,
                **kwargs,
            ),            Card.from_field_schemas_with_defaults(
                _MATREINFORCEDTHERMOPLASTIC_CARD8,
                **kwargs,
            ),            OptionCardSet(
                option_spec = MatReinforcedThermoplastic.option_specs[0],
                cards = [
                    Card.from_field_schemas_with_defaults(
                        _MATREINFORCEDTHERMOPLASTIC_OPTION0_CARD0,
                        **kwargs,
                    ),
                ],
                **kwargs
            ),
        ]
    @property
    def mid(self) -> typing.Optional[int]:
        """Get or set the Material identification. A unique number or label must be specified.
        """ # 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 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 em(self) -> typing.Optional[float]:
        """Get or set the Young's modulus of matrix material
        """ # nopep8
        return self._cards[0].get_value("em")

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

    @property
    def lcem(self) -> typing.Optional[int]:
        """Get or set the Curve ID for Young's modulus of matrix material as a function of temperature. With this option active, EM is ignored
        """ # nopep8
        return self._cards[0].get_value("lcem")

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

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

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

    @property
    def lcprm(self) -> typing.Optional[int]:
        """Get or set the Curve ID for Poisson's ratio of matrix material versus temperature. With this option active, EM is ignored
        """ # nopep8
        return self._cards[0].get_value("lcprm")

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

    @property
    def lcsigy(self) -> typing.Optional[int]:
        """Get or set the Load curve or table ID for strain hardening of the matrix. If a curve, then it specifies yield stress as a function of effective plastic strain. If a table, then temperatures are the table values indexing curves giving yield stress as a function of effective plastic strain (see *DEFINE_‌TABLE).
        """ # nopep8
        return self._cards[0].get_value("lcsigy")

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

    @property
    def beta(self) -> typing.Optional[float]:
        """Get or set the Parameter for mixed hardening. Set BETA = 0 for pure kinematic hardening and BETA = 1 for pure isotropic hardening
        """ # 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 nfib(self) -> typing.Optional[int]:
        """Get or set the Number of fiber families to be considered
        """ # nopep8
        return self._cards[1].get_value("nfib")

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

    @property
    def aopt(self) -> typing.Optional[float]:
        """Get or set the Material axes option (see MAT_OPTIONTROPIC_ELASTIC for a more complete description):
        EQ.0.0:	Locally orthotropic with material axes determined by element nodes, as with* DEFINE_COORDI - NATE_NODES,and then rotated about the shell element normal by the angle MANGL.
        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.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 with MANGL.
        LT.0.0 : The absolute value of AOPT is a coordinate system ID number(CID on * DEFINE_COORDINATE_NODES, *DEFINE_COORDINATE_SYSTEM or *DEFINE_COORDINATE_VECTOR).
        """ # 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 a1(self) -> typing.Optional[float]:
        """Get or set the X-component of vector a for AOPT = 2
        """ # nopep8
        return self._cards[1].get_value("a1")

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    @property
    def thick(self) -> typing.Optional[float]:
        """Get or set the Balance thickness changes of the material due to the matrix description by scaling fiber stresses:
        EQ.0:	No scaling
        EQ.1 : Scaling
        """ # nopep8
        return self._cards[2].get_value("thick")

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

    @property
    def idf1(self) -> typing.Optional[int]:
        """Get or set the ID for 1st fiber family for post-processing
        """ # nopep8
        return self._cards[3].get_value("idf1")

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

    @property
    def alph1(self) -> typing.Optional[float]:
        """Get or set the Orientation angle ALPHA for 1st fiber with respect to overall material direction
        """ # nopep8
        return self._cards[3].get_value("alph1")

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

    @property
    def ef1(self) -> typing.Optional[float]:
        """Get or set the Young's modulus for 1st fiber family
        """ # nopep8
        return self._cards[3].get_value("ef1")

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

    @property
    def lcef1(self) -> typing.Optional[int]:
        """Get or set the Load curve for stress as a function of fiber strain of 1st fiber. With this option active, EF1 is ignored. If a curve, then it specifies input stress as a function of fiber strain. If a table, then temperatures are the table values indexing curves giving stress as function of fiber strain. The table data will be extrapolated for both strains and temperatures where necessary.
        """ # nopep8
        return self._cards[3].get_value("lcef1")

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

    @property
    def g23_1(self) -> typing.Optional[float]:
        """Get or set the Transversal shear modulus orthogonal to direction of fiber 1
        """ # nopep8
        return self._cards[3].get_value("g23_1")

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

    @property
    def g31_1(self) -> typing.Optional[float]:
        """Get or set the Transversal shear modulus in direction of fiber 1
        """ # nopep8
        return self._cards[3].get_value("g31_1")

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

    @property
    def g12(self) -> typing.Optional[float]:
        """Get or set the Linear shear modulus for shearing between fiber 1 and 2
        """ # nopep8
        return self._cards[4].get_value("g12")

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

    @property
    def lcg12(self) -> typing.Optional[int]:
        """Get or set the Curve ID for shear stress versus shearing between of 1st and 2nd fiber. With this option active, G12 is ignored. For details see parameter METH12
        """ # nopep8
        return self._cards[4].get_value("lcg12")

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

    @property
    def aloc12(self) -> typing.Optional[float]:
        """Get or set the Locking angle (in radians) for shear between fiber families 1 and 2
        """ # nopep8
        return self._cards[4].get_value("aloc12")

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

    @property
    def gloc12(self) -> typing.Optional[float]:
        """Get or set the Linear shear modulus for shear angles larger than ALOC12
        """ # nopep8
        return self._cards[4].get_value("gloc12")

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

    @property
    def meth12(self) -> typing.Optional[int]:
        """Get or set the Option for shear between fiber 1 and 2:
        EQ.0: Elastic shear response, curve LCG12 defines shear stress as a function of scalar product of fibers directions. ALOC12 and GLOC12 are ignored.
        EQ.1: Elasto-plastic shear response, curve LCG12 defines shear stress as a function of the scalar product of fiber directions.
        EQ.2: Elastic shear response, curve LCG12 defines shear stress as a function of shear angle between fiber given in radians. ALOC12 and GLOC12 are ignored.
        EQ.3: Elasto-plastic shear response, curve LCGij defines shear stress vs. shear angle between fibers given in radians.
        EQ.4: Elastic shear response, curve LCG12 defines shear stress vs. shear angle between fiber given in radians. This option is a special implementation for non-crimped fabrics, where one of the fiber families corresponds to a stitching. ALOC12 and GLOC12 are ignored.
        EQ.5: Elasto-plastic shear response, curve LCG12 defines shear stress vs. shear angle between fibers given in radians. This option is a special implementation for non-crimped fabrics, where one of the fiber families corresponds to a stitching
        """ # nopep8
        return self._cards[4].get_value("meth12")

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

    @property
    def idf2(self) -> typing.Optional[int]:
        """Get or set the ID for 2nd fiber family for post-processing
        """ # nopep8
        return self._cards[5].get_value("idf2")

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

    @property
    def alph2(self) -> typing.Optional[float]:
        """Get or set the Orientation angle ALPHA for 2nd fiber with respect to overall material direction
        """ # nopep8
        return self._cards[5].get_value("alph2")

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

    @property
    def ef2(self) -> typing.Optional[float]:
        """Get or set the Young's modulus for 2nd fiber family
        """ # nopep8
        return self._cards[5].get_value("ef2")

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

    @property
    def lcef2(self) -> typing.Optional[int]:
        """Get or set the Load curve for stress as a function of fiber strain of 2nd fiber. With this option active, EF2 is ignored. If a curve, then it specifies input stress as a function of fiber strain. If a table, then temperatures are the table values indexing curves giving stress as function of fiber strain. The table data will be extrapolated for both strains and temperatures where necessary.
        """ # nopep8
        return self._cards[5].get_value("lcef2")

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

    @property
    def g23_2(self) -> typing.Optional[float]:
        """Get or set the Transversal shear modulus orthogonal to direction of fiber 2
        """ # nopep8
        return self._cards[5].get_value("g23_2")

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

    @property
    def g31_2(self) -> typing.Optional[float]:
        """Get or set the Transversal shear modulus in direction of fiber 2
        """ # nopep8
        return self._cards[5].get_value("g31_2")

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

    @property
    def g23(self) -> typing.Optional[float]:
        """Get or set the Linear shear modulus for shearing between fiber 2 and 3
        """ # nopep8
        return self._cards[6].get_value("g23")

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

    @property
    def lcg23(self) -> typing.Optional[int]:
        """Get or set the Curve ID for shear stress versus shearing between of 2nd and 3rd fiber. With this option active, G12 is ignored. For details see parameter METH23
        """ # nopep8
        return self._cards[6].get_value("lcg23")

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

    @property
    def aloc23(self) -> typing.Optional[float]:
        """Get or set the Locking angle (in radians) for shear between fiber families 2 and 3
        """ # nopep8
        return self._cards[6].get_value("aloc23")

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

    @property
    def gloc23(self) -> typing.Optional[float]:
        """Get or set the Linear shear modulus for shear angles larger than ALOC23
        """ # nopep8
        return self._cards[6].get_value("gloc23")

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

    @property
    def meth23(self) -> typing.Optional[int]:
        """Get or set the Option for shear between fiber 2 and 3:
        EQ.0: Elastic shear response, curve LCG23 defines shear stress as a function of scalar product of fibers directions. ALOC23 and GLOC23 are ignored.
        EQ.1: Elasto-plastic shear response, curve LCG23 defines shear stress as a function of the scalar product of fiber directions.
        EQ.2: Elastic shear response, curve LCG23 defines shear stress as a function of shear angle between fiber given in radians. ALOC23 and GLOC23 are ignored.
        EQ.3: Elasto-plastic shear response, curve LCG23 defines shear stress vs. shear angle between fibers given in radians.
        EQ.4: Elastic shear response, curve LCG23 defines shear stress vs. shear angle between fiber given in radians. This option is a special implementation for non-crimped fabrics, where one of the fiber families corresponds to a stitching. ALOC23 and GLOC23 are ignored.
        EQ.5: Elasto-plastic shear response, curve LCG23 defines shear stress vs. shear angle between fibers given in radians. This option is a special implementation for non-crimped fabrics, where one of the fiber families corresponds to a stitching
        """ # nopep8
        return self._cards[6].get_value("meth23")

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

    @property
    def idf3(self) -> typing.Optional[int]:
        """Get or set the ID for 3rd fiber family for post-processing
        """ # nopep8
        return self._cards[7].get_value("idf3")

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

    @property
    def alph3(self) -> typing.Optional[float]:
        """Get or set the Orientation angle ALPHA for 3rd fiber with respect to overall material direction
        """ # nopep8
        return self._cards[7].get_value("alph3")

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

    @property
    def ef3(self) -> typing.Optional[float]:
        """Get or set the Young's modulus for 3rd fiber family
        """ # nopep8
        return self._cards[7].get_value("ef3")

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

    @property
    def lcef3(self) -> typing.Optional[int]:
        """Get or set the Load curve for stress versus fiber strain of 3rd fiber. With this option active, EF3 is ignored. If a curve, then it specifies input stress as a function of fiber strain. If a table, then temperatures are the table values indexing curves giving stress as function of fiber strain. The table data will be extrapolated for both strains and temperatures where necessary.
        """ # nopep8
        return self._cards[7].get_value("lcef3")

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

    @property
    def g23_3(self) -> typing.Optional[float]:
        """Get or set the Transversal shear modulus orthogonal to direction of fiber 3
        """ # nopep8
        return self._cards[7].get_value("g23_3")

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

    @property
    def g31_3(self) -> typing.Optional[float]:
        """Get or set the Transversal shear modulus in direction of fiber 3
        """ # nopep8
        return self._cards[7].get_value("g31_3")

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

    @property
    def postv(self) -> typing.Optional[int]:
        """Get or set the Defines additional history variables that might be useful for post-processing.
        """ # nopep8
        return self._cards[8].get_value("postv")

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

    @property
    def ihis(self) -> typing.Optional[float]:
        """Get or set the Flag for material properties initialization:
        EQ.0:	Material properties defined in Cards 1 - 9 are used.
        GE.1 : Use * INITIAL_‌STRESS_‌SHELL to initialize some material properties on an element - by - element basis
        """ # nopep8
        return self._cards[8].get_value("ihis")

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

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

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

        if value:
            self.activate_option("TITLE")

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    @property
    def lcsigy_link(self) -> typing.Optional[KeywordBase]:
        """Get the linked DEFINE_CURVE or DEFINE_TABLE for lcsigy."""
        if self.deck is None:
            return None
        field_value = self.lcsigy
        if field_value is None or field_value == 0:
            return None
        for kwd in self.deck.get_kwds_by_full_type("DEFINE", "CURVE"):
            if kwd.lcid == field_value:
                return kwd
        for kwd in self.deck.get_kwds_by_full_type("DEFINE", "TABLE"):
            if kwd.tbid == field_value:
                return kwd
        return None

    @lcsigy_link.setter
    def lcsigy_link(self, value: KeywordBase) -> None:
        """Set the linked keyword for lcsigy."""
        if hasattr(value, "lcid"):
            self.lcsigy = value.lcid
        elif hasattr(value, "tbid"):
            self.lcsigy = value.tbid

