# 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 AirbagHybridChemkinId 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.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

_AIRBAGHYBRIDCHEMKINID_CARD0 = (
    FieldSchema("id", int, 0, 10, None),
    FieldSchema("title", str, 10, 70, None),
)

_AIRBAGHYBRIDCHEMKINID_CARD1 = (
    FieldSchema("sid", int, 0, 10, None),
    FieldSchema("sidtyp", int, 10, 10, 0),
    FieldSchema("rbid", int, 20, 10, 0),
    FieldSchema("vsca", float, 30, 10, 1.0),
    FieldSchema("psca", float, 40, 10, 1.0),
    FieldSchema("vini", float, 50, 10, 0.0),
    FieldSchema("mwd", float, 60, 10, 0.0),
    FieldSchema("spsf", float, 70, 10, 0.0),
)

_AIRBAGHYBRIDCHEMKINID_CARD2 = (
    FieldSchema("lcidm", int, 0, 10, None),
    FieldSchema("lcidt", int, 10, 10, None),
    FieldSchema("ngas", int, 20, 10, None),
    FieldSchema("data", int, 30, 10, 0),
    FieldSchema("atmt", float, 40, 10, None),
    FieldSchema("atmp", float, 50, 10, None),
    FieldSchema("rg", float, 60, 10, None),
)

_AIRBAGHYBRIDCHEMKINID_CARD3 = (
    FieldSchema("hconv", float, 0, 10, 0.0),
)

_AIRBAGHYBRIDCHEMKINID_CARD4 = (
    FieldSchema("c23", float, 0, 10, 0.0),
    FieldSchema("a23", float, 10, 10, 0.0),
)

_AIRBAGHYBRIDCHEMKINID_CARD5 = (
    FieldSchema("chname", str, 0, 10, None),
    FieldSchema("mw", float, 10, 10, None),
    FieldSchema("lcidn", int, 20, 10, 0),
    FieldSchema("fmole", float, 30, 10, None),
    FieldSchema("fmolet", float, 40, 10, 0.0),
)

_AIRBAGHYBRIDCHEMKINID_CARD6 = (
    FieldSchema("tlow", float, 0, 10, None),
    FieldSchema("tmid", float, 10, 10, None),
    FieldSchema("thigh", float, 20, 10, None),
)

_AIRBAGHYBRIDCHEMKINID_CARD7 = (
    FieldSchema("alow", float, 0, 10, None),
    FieldSchema("blow", float, 10, 10, None),
    FieldSchema("clow", float, 20, 10, None),
    FieldSchema("dlow", float, 30, 10, None),
    FieldSchema("elow", float, 40, 10, None),
    FieldSchema("flow", float, 50, 10, None),
    FieldSchema("glow", float, 60, 10, None),
)

_AIRBAGHYBRIDCHEMKINID_CARD8 = (
    FieldSchema("ahigh", float, 0, 10, None),
    FieldSchema("bhigh", float, 10, 10, None),
    FieldSchema("chigh", float, 20, 10, None),
    FieldSchema("dhigh", float, 30, 10, None),
    FieldSchema("ehigh", float, 40, 10, None),
    FieldSchema("fhigh", float, 50, 10, None),
    FieldSchema("ghigh", float, 60, 10, None),
)

_AIRBAGHYBRIDCHEMKINID_CARD9 = (
    FieldSchema("a", float, 0, 10, None),
    FieldSchema("b", float, 10, 10, 0.0),
    FieldSchema("c", float, 20, 10, 0.0),
    FieldSchema("d", float, 30, 10, 0.0),
    FieldSchema("e", float, 40, 10, 0.0),
)

class AirbagHybridChemkinId(KeywordBase):
    """DYNA AIRBAG_HYBRID_CHEMKIN_ID keyword"""

    keyword = "AIRBAG"
    subkeyword = "HYBRID_CHEMKIN_ID"
    _link_fields = {
        "lcidm": LinkType.DEFINE_CURVE,
        "lcidt": LinkType.DEFINE_CURVE,
        "lcidn": LinkType.DEFINE_CURVE,
    }

    def __init__(self, **kwargs):
        """Initialize the AirbagHybridChemkinId class."""
        super().__init__(**kwargs)
        self._cards = [
            Card.from_field_schemas_with_defaults(
                _AIRBAGHYBRIDCHEMKINID_CARD0,
                **kwargs,
            ),            Card.from_field_schemas_with_defaults(
                _AIRBAGHYBRIDCHEMKINID_CARD1,
                **kwargs,
            ),            Card.from_field_schemas_with_defaults(
                _AIRBAGHYBRIDCHEMKINID_CARD2,
                **kwargs,
            ),            Card.from_field_schemas_with_defaults(
                _AIRBAGHYBRIDCHEMKINID_CARD3,
                **kwargs,
            ),            Card.from_field_schemas_with_defaults(
                _AIRBAGHYBRIDCHEMKINID_CARD4,
                **kwargs,
            ),            Card.from_field_schemas_with_defaults(
                _AIRBAGHYBRIDCHEMKINID_CARD5,
                **kwargs,
            ),            Card.from_field_schemas_with_defaults(
                _AIRBAGHYBRIDCHEMKINID_CARD6,
                **kwargs,
            ),            Card.from_field_schemas_with_defaults(
                _AIRBAGHYBRIDCHEMKINID_CARD7,
                **kwargs,
            ),            Card.from_field_schemas_with_defaults(
                _AIRBAGHYBRIDCHEMKINID_CARD8,
                **kwargs,
            ),            Card.from_field_schemas_with_defaults(
                _AIRBAGHYBRIDCHEMKINID_CARD9,
                **kwargs,
            ),        ]
    @property
    def id(self) -> typing.Optional[int]:
        """Get or set the Optional Airbag ID.
        """ # nopep8
        return self._cards[0].get_value("id")

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

    @property
    def title(self) -> typing.Optional[str]:
        """Get or set the Airbag id descriptor. It is suggested that unique descriptions be used.
        """ # nopep8
        return self._cards[0].get_value("title")

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

    @property
    def sid(self) -> typing.Optional[int]:
        """Get or set the Set ID.
        """ # nopep8
        return self._cards[1].get_value("sid")

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

    @property
    def sidtyp(self) -> int:
        """Get or set the Set type:
        EQ.0: segment,
        EQ.1: part IDs.
        """ # nopep8
        return self._cards[1].get_value("sidtyp")

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

    @property
    def rbid(self) -> int:
        """Get or set the Rigid body part ID for user defined activation subroutine:
        EQ.-RBID: sensor subroutine flags initiates the inflator. Load curves are offset by initiation time,
        EQ.0: the control volume is active from time zero,
        EQ.RBID: user sensor subroutine flags the start of the inflation. Load curves are offset by initiation time.
        """ # nopep8
        return self._cards[1].get_value("rbid")

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

    @property
    def vsca(self) -> float:
        """Get or set the Volume scale factor, V-sca (default=1.0).
        """ # nopep8
        return self._cards[1].get_value("vsca")

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

    @property
    def psca(self) -> float:
        """Get or set the Pressure scale factor, P-sca (default=1.0).
        """ # nopep8
        return self._cards[1].get_value("psca")

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

    @property
    def vini(self) -> float:
        """Get or set the Initial filled volume, V-ini (default=0.0).
        """ # nopep8
        return self._cards[1].get_value("vini")

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

    @property
    def mwd(self) -> float:
        """Get or set the Mass weighted damping factor, D (default=0.0).
        """ # nopep8
        return self._cards[1].get_value("mwd")

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

    @property
    def spsf(self) -> float:
        """Get or set the Stagnation pressure scale factor, 0.0 <= gamma <= 1.0.
        """ # nopep8
        return self._cards[1].get_value("spsf")

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

    @property
    def lcidm(self) -> typing.Optional[int]:
        """Get or set the Load curve specifying input mass flow rate versus time.
        GT.0: piece wise linear interpolation
        LT.0: cubic spline interpolation
        """ # nopep8
        return self._cards[2].get_value("lcidm")

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

    @property
    def lcidt(self) -> typing.Optional[int]:
        """Get or set the Load curve specifying input gas temperature versus time.
        GT.0: piece wise linear interpolation
        LT.0: cubic spline interpolation
        """ # nopep8
        return self._cards[2].get_value("lcidt")

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

    @property
    def ngas(self) -> typing.Optional[int]:
        """Get or set the Number of gas inputs to be defined below (including initial air).
        """ # nopep8
        return self._cards[2].get_value("ngas")

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

    @property
    def data(self) -> int:
        """Get or set the Thermodynamic database.
        EQ.1: NIST database (3 additional property cards are required below),
        EQ.2: CHEMKIN database (no additional property cards are required),
        EQ.3: Polynomial data (1 additional property card is required below).
        """ # nopep8
        return self._cards[2].get_value("data")

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

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

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

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

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

    @property
    def rg(self) -> typing.Optional[float]:
        """Get or set the Universal gas constant.
        """ # nopep8
        return self._cards[2].get_value("rg")

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

    @property
    def hconv(self) -> float:
        """Get or set the Convection heat transfer coefficient
        """ # nopep8
        return self._cards[3].get_value("hconv")

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

    @property
    def c23(self) -> float:
        """Get or set the Vent orifice coefficient
        """ # nopep8
        return self._cards[4].get_value("c23")

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

    @property
    def a23(self) -> float:
        """Get or set the Vent orifice area
        """ # nopep8
        return self._cards[4].get_value("a23")

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

    @property
    def chname(self) -> typing.Optional[str]:
        """Get or set the Chemical symbol for this gas species (e.g., N2 for nitrogen, AR for argon).
        Required for DATA=2 (CHEMKIN), optional for DATA=1 or DATA=3.
        """ # nopep8
        return self._cards[5].get_value("chname")

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

    @property
    def mw(self) -> typing.Optional[float]:
        """Get or set the Molecular weight of this gas species.
        """ # nopep8
        return self._cards[5].get_value("mw")

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

    @property
    def lcidn(self) -> int:
        """Get or set the Load curve specifying the input mole fraction versus time for this gas species. If >0, FMOLE is not used.
        """ # nopep8
        return self._cards[5].get_value("lcidn")

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

    @property
    def fmole(self) -> typing.Optional[float]:
        """Get or set the Mole fraction of this gas species in the inlet stream.
        """ # nopep8
        return self._cards[5].get_value("fmole")

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

    @property
    def fmolet(self) -> float:
        """Get or set the Initial mole fraction of this gas species in the tank.
        """ # nopep8
        return self._cards[5].get_value("fmolet")

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

    @property
    def tlow(self) -> typing.Optional[float]:
        """Get or set the Curve fit low temperature limit.
        """ # nopep8
        return self._cards[6].get_value("tlow")

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

    @property
    def tmid(self) -> typing.Optional[float]:
        """Get or set the Curve fit low-to-high transition temperature.
        """ # nopep8
        return self._cards[6].get_value("tmid")

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

    @property
    def thigh(self) -> typing.Optional[float]:
        """Get or set the Curve fit high temperature limit.
        """ # nopep8
        return self._cards[6].get_value("thigh")

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

    @property
    def alow(self) -> typing.Optional[float]:
        """Get or set the Low temperature range NIST polynomial curve fit coefficient.
        """ # nopep8
        return self._cards[7].get_value("alow")

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

    @property
    def blow(self) -> typing.Optional[float]:
        """Get or set the Low temperature range NIST polynomial curve fit coefficient.
        """ # nopep8
        return self._cards[7].get_value("blow")

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

    @property
    def clow(self) -> typing.Optional[float]:
        """Get or set the Low temperature range NIST polynomial curve fit coefficient.
        """ # nopep8
        return self._cards[7].get_value("clow")

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

    @property
    def dlow(self) -> typing.Optional[float]:
        """Get or set the Low temperature range NIST polynomial curve fit coefficient.
        """ # nopep8
        return self._cards[7].get_value("dlow")

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

    @property
    def elow(self) -> typing.Optional[float]:
        """Get or set the Low temperature range NIST polynomial curve fit coefficient.
        """ # nopep8
        return self._cards[7].get_value("elow")

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

    @property
    def flow(self) -> typing.Optional[float]:
        """Get or set the Low temperature range NIST polynomial curve fit coefficient.
        """ # nopep8
        return self._cards[7].get_value("flow")

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

    @property
    def glow(self) -> typing.Optional[float]:
        """Get or set the Low temperature range NIST polynomial curve fit coefficient.
        """ # nopep8
        return self._cards[7].get_value("glow")

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

    @property
    def ahigh(self) -> typing.Optional[float]:
        """Get or set the High temperature range NIST polynomial curve fit coefficient.
        """ # nopep8
        return self._cards[8].get_value("ahigh")

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

    @property
    def bhigh(self) -> typing.Optional[float]:
        """Get or set the High temperature range NIST polynomial curve fit coefficient.
        """ # nopep8
        return self._cards[8].get_value("bhigh")

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

    @property
    def chigh(self) -> typing.Optional[float]:
        """Get or set the High temperature range NIST polynomial curve fit coefficient.
        """ # nopep8
        return self._cards[8].get_value("chigh")

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

    @property
    def dhigh(self) -> typing.Optional[float]:
        """Get or set the High temperature range NIST polynomial curve fit coefficient.
        """ # nopep8
        return self._cards[8].get_value("dhigh")

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

    @property
    def ehigh(self) -> typing.Optional[float]:
        """Get or set the High temperature range NIST polynomial curve fit coefficient.
        """ # nopep8
        return self._cards[8].get_value("ehigh")

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

    @property
    def fhigh(self) -> typing.Optional[float]:
        """Get or set the High temperature range NIST polynomial curve fit coefficient.
        """ # nopep8
        return self._cards[8].get_value("fhigh")

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

    @property
    def ghigh(self) -> typing.Optional[float]:
        """Get or set the High temperature range NIST polynomial curve fit coefficient.
        """ # nopep8
        return self._cards[8].get_value("ghigh")

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

    @property
    def a(self) -> typing.Optional[float]:
        """Get or set the Coefficient A, in the polynomial curve fit for heat capacity given by the equation:
        c-p = 1/MW (A + BT + CT^2 + DT^3 + ET^4).
        """ # nopep8
        return self._cards[9].get_value("a")

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

    @property
    def b(self) -> float:
        """Get or set the Coefficient B, in the polynomial curve fit for heat capacity given by the equation:
        c-p = 1/MW (A + BT + CT^2 + DT^3 + ET^4).
        """ # nopep8
        return self._cards[9].get_value("b")

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

    @property
    def c(self) -> float:
        """Get or set the Coefficient C, in the polynomial curve fit for heat capacity given by the equation:
        c-p = 1/MW (A + BT + CT^2 + DT^3 + ET^4).
        """ # nopep8
        return self._cards[9].get_value("c")

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

    @property
    def d(self) -> float:
        """Get or set the Coefficient D, in the polynomial curve fit for heat capacity given by the equation:
        c-p = 1/MW (A + BT + CT^2 + DT^3 + ET^4).
        """ # nopep8
        return self._cards[9].get_value("d")

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

    @property
    def e(self) -> float:
        """Get or set the Coefficient E, in the polynomial curve fit for heat capacity given by the equation:
        c-p = 1/MW (A + BT + CT^2 + DT^3 + ET^4).
        """ # nopep8
        return self._cards[9].get_value("e")

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

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

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

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

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

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

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

