pygeo/parameterization/DVGeo.py
def addChild(self, childDVGeo):
        """Embed a child FFD into this object.

        An FFD child is a 'sub' FFD that is fully contained within
        another, parent FFD. A child FFD is also an instance of
        DVGeometry which may have its own global and/or local design
        variables. Coordinates do **not** need to be added to the
        children. The parent object will take care of that in a call
        to addPointSet().

        See https://github.com/mdolab/pygeo/issues/7 for a description of an
        issue with Child FFDs that you should be aware of if you are combining
        shape changes of a parent FFD with rotation or shape changes of a child FFD.

        Parameters
        ----------
        childDVGeo : instance of DVGeometry
            DVGeo object to use as a sub-FFD
        """

        # Make sure the DVGeo being added is flaged as a child:
        if childDVGeo.isChild is False:
            raise Error("Trying to add a child FFD that has NOT been " "created as a child. This operation is illegal.")

        # Extract the coef from the child FFD and ref axis and embed
        # them into the parent and compute their derivatives
        iChild = len(self.children)
        childDVGeo.iChild = iChild

        self.FFD.attachPoints(childDVGeo.FFD.coef, "child%d_coef" % (iChild))
        self.FFD.calcdPtdCoef("child%d_coef" % (iChild))

        # We must finalize the Child here since we need the ref axis
        # coefficients
        childDVGeo._finalizeAxis()
        self.FFD.attachPoints(childDVGeo.refAxis.coef, "child%d_axis" % (iChild))
        self.FFD.calcdPtdCoef("child%d_axis" % (iChild))

        # Add the child to the parent and return
        self.children.append(childDVGeo)
Embed a child FFD into this object.

        An FFD child is a 'sub' FFD that is fully contained within
        another, parent FFD. A child FFD is also an instance of
        DVGeometry which may have its own global and/or local design
        variables. Coordinates do **not** need to be added to the
        children. The parent object will take care of that in a call
        to addPointSet().

        See https://github.com/mdolab/pygeo/issues/7 for a description of an
        issue with Child FFDs that you should be aware of if you are combining
        shape changes of a parent FFD with rotation or shape changes of a child FFD.

        Parameters
        ----------
        childDVGeo : instance of DVGeometry
            DVGeo object to use as a sub-FFD
        
Embed a child FFD into this object.
An FFD child is a 'sub' FFD that is fully contained within
another, parent FFD. A child FFD is also an instance of
DVGeometry which may have its own global and/or local design
variables. Coordinates do **not** need to be added to the
children. The parent object will take care of that in a call
to addPointSet().



Parameters

childDVGeo : instance of DVGeometry
DVGeo object to use as a sub-FFD
Embed a child FFD into this object . An FFD child is a ' sub ' FFD that is fully contained within another parent FFD . A child FFD is also an instance of DVGeometry which may have its own global and / or local design variables . Coordinates do ** not ** need to be added to the children . The parent object will take care of that in a call to addPointSet () . Parameters childDVGeo : instance of DVGeometry DVGeo object to use as a sub - FFD
def addChild(self, childDVGeo):
        if childDVGeo.isChild is False:
            raise Error("Trying to add a child FFD that has NOT been " "created as a child. This operation is illegal.")
        iChild = len(self.children)
        childDVGeo.iChild = iChild
        self.FFD.attachPoints(childDVGeo.FFD.coef, "child%d_coef" % (iChild))
        self.FFD.calcdPtdCoef("child%d_coef" % (iChild))
        childDVGeo._finalizeAxis()
        self.FFD.attachPoints(childDVGeo.refAxis.coef, "child%d_axis" % (iChild))
        self.FFD.calcdPtdCoef("child%d_axis" % (iChild))
        self.children.append(childDVGeo)
def addChild ( self , childDVGeo ) : if childDVGeo . isChild is False : raise Error ( "Trying to add a child FFD that has NOT been " "created as a child. This operation is illegal." ) iChild = len ( self . children ) childDVGeo . iChild = iChild self . FFD . attachPoints ( childDVGeo . FFD . coef , "child%d_coef" % ( iChild ) ) self . FFD . calcdPtdCoef ( "child%d_coef" % ( iChild ) ) childDVGeo . _finalizeAxis ( ) self . FFD . attachPoints ( childDVGeo . refAxis . coef , "child%d_axis" % ( iChild ) ) self . FFD . calcdPtdCoef ( "child%d_axis" % ( iChild ) ) self . children . append ( childDVGeo )
Embed a child FFD into this object.
Embed a child FFD into this object .
"""Embed a child FFD into this object.

        An FFD child is a 'sub' FFD that is fully contained within
        another, parent FFD. A child FFD is also an instance of
        DVGeometry which may have its own global and/or local design
        variables. Coordinates do **not** need to be added to the
        children. The parent object will take care of that in a call
        to addPointSet().

        See https://github.com/mdolab/pygeo/issues/7 for a description of an
        issue with Child FFDs that you should be aware of if you are combining
        shape changes of a parent FFD with rotation or shape changes of a child FFD.

        Parameters
        ----------
        childDVGeo : instance of DVGeometry
            DVGeo object to use as a sub-FFD
        """ # Make sure the DVGeo being added is flaged as a child: # Extract the coef from the child FFD and ref axis and embed # them into the parent and compute their derivatives # We must finalize the Child here since we need the ref axis # coefficients # Add the child to the parent and return
self
childDVGeo