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

_MAT172_CARD0 = (
    FieldSchema("mid", int, 0, 10, None),
    FieldSchema("ro", float, 10, 10, None),
    FieldSchema("fc", float, 20, 10, None),
    FieldSchema("ft", float, 30, 10, None),
    FieldSchema("typec", float, 40, 10, 1.0),
    FieldSchema("unitc", float, 50, 10, 1.0),
    FieldSchema("ecuten", float, 60, 10, 0.0025),
    FieldSchema("fcc", float, 70, 10, None),
)

_MAT172_CARD1 = (
    FieldSchema("esoft", float, 0, 10, None),
    FieldSchema("lchar", float, 10, 10, None),
    FieldSchema("mu", float, 20, 10, 0.4),
    FieldSchema("taumxf", float, 30, 10, 1e+20),
    FieldSchema("taumxc", float, 40, 10, 1.161),
    FieldSchema("ecragg", float, 50, 10, 0.001),
    FieldSchema("aggsz", float, 60, 10, None),
    FieldSchema("unitl", float, 70, 10, 1.0),
)

_MAT172_CARD2 = (
    FieldSchema("ymreinf", float, 0, 10, None),
    FieldSchema("prrinf", float, 10, 10, None),
    FieldSchema("sureinf", float, 20, 10, None),
    FieldSchema("typer", float, 30, 10, 1.0),
    FieldSchema("fracrx", float, 40, 10, None),
    FieldSchema("fracry", float, 50, 10, None),
    FieldSchema("lcrsu", int, 60, 10, None),
    FieldSchema("lcalps", int, 70, 10, None),
)

_MAT172_CARD3 = (
    FieldSchema("aopt", float, 0, 10, None),
    FieldSchema("et36", float, 10, 10, None),
    FieldSchema("prt36_", float, 20, 10, 0.25, "prt36 "),
    FieldSchema("ecut36", float, 30, 10, None),
    FieldSchema("lcalpc", int, 40, 10, None),
    FieldSchema("degrad", float, 50, 10, None),
    FieldSchema("ishchk", int, 60, 10, 0),
    FieldSchema("unlfac", float, 70, 10, 0.5),
)

_MAT172_CARD4 = (
    FieldSchema("xp", float, 0, 10, None),
    FieldSchema("yp", float, 10, 10, None),
    FieldSchema("zp_", float, 20, 10, None, "zp "),
    FieldSchema("a1", float, 30, 10, 1e+20),
    FieldSchema("a2", float, 40, 10, None),
    FieldSchema("a3", float, 50, 10, None),
)

_MAT172_CARD5 = (
    FieldSchema("v1", float, 0, 10, None),
    FieldSchema("v2", float, 10, 10, None),
    FieldSchema("v3_", float, 20, 10, None, "v3 "),
    FieldSchema("d1", float, 30, 10, None),
    FieldSchema("d2", float, 40, 10, None),
    FieldSchema("d3", float, 50, 10, None),
    FieldSchema("beta", float, 60, 10, None),
)

_MAT172_CARD6 = (
    FieldSchema("typesc", float, 0, 10, 1.0),
    FieldSchema("p_or_f", float, 10, 10, None),
    FieldSchema("effd_", float, 20, 10, None, "effd "),
    FieldSchema("gamsc", float, 30, 10, None),
    FieldSchema("erodet", float, 40, 10, 2.0),
    FieldSchema("erodec", float, 50, 10, 0.01),
    FieldSchema("eroder", float, 60, 10, 0.05),
    FieldSchema("tmpoff", float, 70, 10, None),
)

_MAT172_CARD7 = (
    FieldSchema("ec1_6", float, 0, 10, None),
    FieldSchema("ecsp69", float, 10, 10, None),
    FieldSchema("gamce9", float, 20, 10, None),
    FieldSchema("phief9", float, 30, 10, None),
)

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

class Mat172(KeywordBase):
    """DYNA MAT_172 keyword"""

    keyword = "MAT"
    subkeyword = "172"
    option_specs = [
        OptionSpec("TITLE", -1, 1),
    ]
    _link_fields = {
        "lcrsu": LinkType.DEFINE_CURVE,
        "lcalps": LinkType.DEFINE_CURVE,
        "lcalpc": LinkType.DEFINE_CURVE,
    }

    def __init__(self, **kwargs):
        """Initialize the Mat172 class."""
        super().__init__(**kwargs)
        kwargs["parent"] = self
        self._cards = [
            Card.from_field_schemas_with_defaults(
                _MAT172_CARD0,
                **kwargs,
            ),            Card.from_field_schemas_with_defaults(
                _MAT172_CARD1,
                **kwargs,
            ),            Card.from_field_schemas_with_defaults(
                _MAT172_CARD2,
                **kwargs,
            ),            Card.from_field_schemas_with_defaults(
                _MAT172_CARD3,
                **kwargs,
            ),            Card.from_field_schemas_with_defaults(
                _MAT172_CARD4,
                **kwargs,
            ),            Card.from_field_schemas_with_defaults(
                _MAT172_CARD5,
                **kwargs,
            ),            Card.from_field_schemas_with_defaults(
                _MAT172_CARD6,
                **kwargs,
            ),            Card.from_field_schemas_with_defaults(
                _MAT172_CARD7,
                **kwargs,
            ),            OptionCardSet(
                option_spec = Mat172.option_specs[0],
                cards = [
                    Card.from_field_schemas_with_defaults(
                        _MAT172_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 fc(self) -> typing.Optional[float]:
        """Get or set the Compressive strength of concrete (stress units)
        """ # nopep8
        return self._cards[0].get_value("fc")

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

    @property
    def ft(self) -> typing.Optional[float]:
        """Get or set the Tensile stress to cause cracking
        """ # nopep8
        return self._cards[0].get_value("ft")

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

    @property
    def typec(self) -> float:
        """Get or set the EQ.1.0: Siliceous (default), Draft EC2 Annex (fire engineering)
        EQ.2.0: Calcareous, Draft EC2 Annex (fire engineering)
        EQ.3.0: Non-thermally-sensitive using ET3, ECU3
        EQ.4.0: Lightweight
        EQ.5.0: Fiber-reinforced
        EQ.6.0: Non-thermally-sensitive, Mander algorithm
        EQ.7.0: Siliceous, EC2 1-2:2004 (fire engineering)
        EQ.8.0: Calcareous, EC2 1-2:2004 (fire engineering)
        EQ.9.0: EC2 1-1:2004 (general and buildings)
        """ # nopep8
        return self._cards[0].get_value("typec")

    @typec.setter
    def typec(self, value: float) -> None:
        """Set the typec property."""
        if value not in [1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, None]:
            raise Exception("""typec must be `None` or one of {1.0,2.0,3.0,4.0,5.0,6.0,7.0,8.0,9.0}.""")
        self._cards[0].set_value("typec", value)

    @property
    def unitc(self) -> float:
        """Get or set the Factor to convert stress units to MPa (see Remarks)
        """ # nopep8
        return self._cards[0].get_value("unitc")

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

    @property
    def ecuten(self) -> float:
        """Get or set the Strain to fully open a crack
        """ # nopep8
        return self._cards[0].get_value("ecuten")

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

    @property
    def fcc(self) -> typing.Optional[float]:
        """Get or set the Relevant only if TYPEC = 6 or 9.
        TYPEC.EQ.6:	FCC is the compressive strength of confined concrete used in Mander equations. Default: unconfined properties are assumed (FCC‌ = FC).
        TYPEC.EQ.9:	FCC is the actual compressive strength. If blank, this will be set equal to
        the mean compressive strength (fcm in EC2 1-1) as required for serviceability calculations (8MPa greater than FC).
        For ultimate load calculations the user may set FCC to a factored characteristic compressive strength. See remarks below
        """ # nopep8
        return self._cards[0].get_value("fcc")

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

    @property
    def esoft(self) -> typing.Optional[float]:
        """Get or set the Tension stiffening (Slope of stress-strain curve post-cracking in tension)
        """ # nopep8
        return self._cards[1].get_value("esoft")

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

    @property
    def lchar(self) -> typing.Optional[float]:
        """Get or set the Characteristic length at which ESOFT applies; also used as crack spacing in aggregate-interlock calculation
        """ # nopep8
        return self._cards[1].get_value("lchar")

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

    @property
    def mu(self) -> float:
        """Get or set the Friction on crack planes (ignored if AGGSZ>0 - see notes)
        """ # nopep8
        return self._cards[1].get_value("mu")

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

    @property
    def taumxf(self) -> float:
        """Get or set the Maximum friction shear stress on crack planes (ignored if AGGSZ>0 - see notes)
        """ # nopep8
        return self._cards[1].get_value("taumxf")

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

    @property
    def taumxc(self) -> float:
        """Get or set the Maximum through-thickness shear stress after cracking (see notes)
        """ # nopep8
        return self._cards[1].get_value("taumxc")

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

    @property
    def ecragg(self) -> float:
        """Get or set the Strain parameter for aggregate interlock (ignored if AGGSZ>0 - see notes)
        """ # nopep8
        return self._cards[1].get_value("ecragg")

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

    @property
    def aggsz(self) -> typing.Optional[float]:
        """Get or set the Aggregate size (length units)  (used in NS3473 aggregate interlock formula - see notes)
        """ # nopep8
        return self._cards[1].get_value("aggsz")

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

    @property
    def unitl(self) -> float:
        """Get or set the Factor to convert length units to millimetres (used only if AGGSZ>0  - see notes)
        """ # nopep8
        return self._cards[1].get_value("unitl")

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

    @property
    def ymreinf(self) -> typing.Optional[float]:
        """Get or set the Young's Modulus of reinforcement
        """ # nopep8
        return self._cards[2].get_value("ymreinf")

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

    @property
    def prrinf(self) -> typing.Optional[float]:
        """Get or set the Poisson's Ratio of reinforcement
        """ # nopep8
        return self._cards[2].get_value("prrinf")

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

    @property
    def sureinf(self) -> typing.Optional[float]:
        """Get or set the Ultimate stress of reinforcement
        """ # nopep8
        return self._cards[2].get_value("sureinf")

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

    @property
    def typer(self) -> float:
        """Get or set the Type of reinforcement for stress-strain-temperature relationships
        EQ.1.0: Hot rolled reinforcing steel
        EQ.2.0: Cold worked reinforcing steel (default)
        EQ.3.0: Quenched and tempered prestressing steel
        EQ.4.0: Cold worked prestressing steel
        5.0  Non-thermally-sensitive using loadcurve LCRSU
        """ # nopep8
        return self._cards[2].get_value("typer")

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

    @property
    def fracrx(self) -> typing.Optional[float]:
        """Get or set the Fraction of reinforcement (x-axis) (e.g. for 1% reinforcement FRACR=0.01)
        """ # nopep8
        return self._cards[2].get_value("fracrx")

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

    @property
    def fracry(self) -> typing.Optional[float]:
        """Get or set the Fraction of reinforcement (y-axis) (e.g. for 1% reinforcement FRACR=0.01)
        """ # nopep8
        return self._cards[2].get_value("fracry")

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

    @property
    def lcrsu(self) -> typing.Optional[int]:
        """Get or set the Load curve for TYPER=5, giving non-dimensional factor on SUREINF versus plastic strain (overrides stress-strain relationships from EC2)
        """ # nopep8
        return self._cards[2].get_value("lcrsu")

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

    @property
    def lcalps(self) -> typing.Optional[int]:
        """Get or set the Optional loadcurve giving thermal expansion coefficient of reinforcement vs temperature - overrides relationship from EC2
        """ # nopep8
        return self._cards[2].get_value("lcalps")

    @lcalps.setter
    def lcalps(self, value: int) -> None:
        """Set the lcalps property."""
        self._cards[2].set_value("lcalps", 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 rotated about the shell element normal by the angle BETA.
        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.
        """ # nopep8
        return self._cards[3].get_value("aopt")

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

    @property
    def et36(self) -> typing.Optional[float]:
        """Get or set the Young's Modulus of concrete (TYPEC=3 and 6)
        """ # nopep8
        return self._cards[3].get_value("et36")

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

    @property
    def prt36_(self) -> float:
        """Get or set the Poisson's Ratio of concrete (TYPEC=3 and 6)
        """ # nopep8
        return self._cards[3].get_value("prt36_")

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

    @property
    def ecut36(self) -> typing.Optional[float]:
        """Get or set the Strain to failure of concrete in compression cu (TYPEC=3 and 6).See under “Compressive response…” in in section Material Behavior of Concretethe below. Default is 0.02 for TYPEC = 3 and 1.1×EC1_6  for TYPEC = 6..
        """ # nopep8
        return self._cards[3].get_value("ecut36")

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

    @property
    def lcalpc(self) -> typing.Optional[int]:
        """Get or set the Optional load curve giving thermal expansion coefficient of concrete vs temperature - overrides relationship from EC2
        """ # nopep8
        return self._cards[3].get_value("lcalpc")

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

    @property
    def degrad(self) -> typing.Optional[float]:
        """Get or set the If non-zero, the compressive strength of concrete parallel to an open crack will be reduced (see notes)
        """ # nopep8
        return self._cards[3].get_value("degrad")

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

    @property
    def ishchk(self) -> int:
        """Get or set the Flag = 1 to input data for shear capacity check
        """ # nopep8
        return self._cards[3].get_value("ishchk")

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

    @property
    def unlfac(self) -> float:
        """Get or set the Stiffness degradation factor after crushing (0.0 to 1.0 ¨C see notes)
        """ # nopep8
        return self._cards[3].get_value("unlfac")

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    @property
    def v3_(self) -> typing.Optional[float]:
        """Get or set the Components of vector v for AOPT = 3 and 4 (see Mat type 2)
        """ # nopep8
        return self._cards[5].get_value("v3_")

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

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

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

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

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

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

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

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

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

    @property
    def typesc(self) -> float:
        """Get or set the Type of shear capacity check
        EQ.1.0:	BS 8110, no failure even if capacity is exceeded
        EQ.2.0:	ACI 318 - 05M, no failure even if capacity is exceeded
        EQ.11 : BS 8110, failure occurs if capacity is exceeded
        EQ.12 : ACI 318 - 05M, failure occurs if capacity is exceeded
        """ # nopep8
        return self._cards[6].get_value("typesc")

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

    @property
    def p_or_f(self) -> typing.Optional[float]:
        """Get or set the If BS8110 shear check, percent reinforcement - e.g. if 0.5%, input 0.5. If ACI shear check, ratio (cylinder strength/FC) - defaults to 1
        """ # nopep8
        return self._cards[6].get_value("p_or_f")

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

    @property
    def effd_(self) -> typing.Optional[float]:
        """Get or set the Effective section depth (length units), used in shear capacity check. This is usually the section depth excluding the cover concrete
        """ # nopep8
        return self._cards[6].get_value("effd_")

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

    @property
    def gamsc(self) -> typing.Optional[float]:
        """Get or set the Load factor used in BS8110 shear capacity check
        """ # nopep8
        return self._cards[6].get_value("gamsc")

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

    @property
    def erodet(self) -> float:
        """Get or set the Crack-opening strain at which element is deleted; see Remark 7
        """ # nopep8
        return self._cards[6].get_value("erodet")

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

    @property
    def erodec(self) -> float:
        """Get or set the Compressive strain used in erosion criteria; see Remark 7.
        """ # nopep8
        return self._cards[6].get_value("erodec")

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

    @property
    def eroder(self) -> float:
        """Get or set the Reinforcement plastic strain used in erosion criteria; see Remark 7.
        """ # nopep8
        return self._cards[6].get_value("eroder")

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

    @property
    def tmpoff(self) -> typing.Optional[float]:
        """Get or set the Constant to be added to the model's temperature unit to convert into degrees Celsius, e.g., if the model's temperature unit is degrees Kelvin, set TMPOFF to -273.  Degrees Celsius temperatures are then used throughout the material model, e.g., for LCALPC as well as for the default thermally-sensitive properties.
        """ # nopep8
        return self._cards[6].get_value("tmpoff")

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

    @property
    def ec1_6(self) -> typing.Optional[float]:
        """Get or set the Strain at maximum compressive stress for Type 6 concrete
        """ # nopep8
        return self._cards[7].get_value("ec1_6")

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

    @property
    def ecsp69(self) -> typing.Optional[float]:
        """Get or set the Spalling strain in compression for Type 6 concrete
        """ # nopep8
        return self._cards[7].get_value("ecsp69")

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

    @property
    def gamce9(self) -> typing.Optional[float]:
        """Get or set the Material factor that divides the Youngs Modulus (TYPEC = 9).
        """ # nopep8
        return self._cards[7].get_value("gamce9")

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

    @property
    def phief9(self) -> typing.Optional[float]:
        """Get or set the Effective creep ratio (TYPEC = 9).
        """ # nopep8
        return self._cards[7].get_value("phief9")

    @phief9.setter
    def phief9(self, value: float) -> None:
        """Set the phief9 property."""
        self._cards[7].set_value("phief9", 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")

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

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

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

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

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

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

