pygeo/parameterization/DVGeo.py
def addGlobalDV(self, dvName, value, func, lower=None, upper=None, scale=1.0, config=None):
        """
        Add a global design variable to the DVGeometry object. This
        type of design variable acts on one or more reference axis.

        Parameters
        ----------
        dvName : str
            A unique name to be given to this design variable group

        value : float, or iterable list of floats
            The starting value(s) for the design variable. This
            parameter may be a single variable or a numpy array
            (or list) if the function requires more than one
            variable. The number of variables is determined by the
            rank (and if rank ==1, the length) of this parameter.

        lower : float, or iterable list of floats
            The lower bound(s) for the variable(s). A single variable
            is permissable even if an array is given for value. However,
            if an array is given for 'lower', it must be the same length
            as 'value'

        func : python function
            The python function handle that will be used to apply the
            design variable

        upper : float, or iterable list of floats
            The upper bound(s) for the variable(s). Same restrictions as
            'lower'

        scale : float, or iterable list of floats
            The scaling of the variables. A good approximate scale to
            start with is approximately 1.0/(upper-lower). This gives
            variables that are of order ~1.0.

        config : str or list
            Define what configurations this design variable will be applied to
            Use a string for a single configuration or a list for multiple
            configurations. The default value of None implies that the design
            variable appies to *ALL* configurations.
        """
        # if the parent DVGeometry object has a name attribute, prepend it
        if self.name is not None:
            dvName = self.name + "_" + dvName

        if isinstance(config, str):
            config = [config]
        self.DV_listGlobal[dvName] = geoDVGlobal(dvName, value, lower, upper, scale, func, config)

        Add a global design variable to the DVGeometry object. This
        type of design variable acts on one or more reference axis.

        Parameters
        ----------
        dvName : str
            A unique name to be given to this design variable group

        value : float, or iterable list of floats
            The starting value(s) for the design variable. This
            parameter may be a single variable or a numpy array
            (or list) if the function requires more than one
            variable. The number of variables is determined by the
            rank (and if rank ==1, the length) of this parameter.

        lower : float, or iterable list of floats
            The lower bound(s) for the variable(s). A single variable
            is permissable even if an array is given for value. However,
            if an array is given for 'lower', it must be the same length
            as 'value'

        func : python function
            The python function handle that will be used to apply the
            design variable

        upper : float, or iterable list of floats
            The upper bound(s) for the variable(s). Same restrictions as
            'lower'

        scale : float, or iterable list of floats
            The scaling of the variables. A good approximate scale to
            start with is approximately 1.0/(upper-lower). This gives
            variables that are of order ~1.0.

        config : str or list
            Define what configurations this design variable will be applied to
            Use a string for a single configuration or a list for multiple
            configurations. The default value of None implies that the design
            variable appies to *ALL* configurations.
        
Add a global design variable to the DVGeometry object. This
type of design variable acts on one or more reference axis.

Parameters

dvName : str
A unique name to be given to this design variable group

value : float, or iterable list of floats
The starting value(s) for the design variable. This
parameter may be a single variable or a numpy array
(or list) if the function requires more than one
variable. The number of variables is determined by the
rank (and if rank ==1, the length) of this parameter.

lower : float, or iterable list of floats
The lower bound(s) for the variable(s). A single variable
is permissable even if an array is given for value. However,
if an array is given for 'lower', it must be the same length
as 'value'

func : python function
The python function handle that will be used to apply the
design variable

upper : float, or iterable list of floats
The upper bound(s) for the variable(s). Same restrictions as
'lower'

scale : float, or iterable list of floats
The scaling of the variables. A good approximate scale to
start with is approximately 1.0/(upper-lower). This gives
variables that are of order ~1.0.

config : str or list
Define what configurations this design variable will be applied to
Use a string for a single configuration or a list for multiple
configurations. The default value of None implies that the design
variable appies to *ALL* configurations.
Add a global design variable to the DVGeometry object . This type of design variable acts on one or more reference axis . Parameters dvName : str A unique name to be given to this design variable group value : float or iterable list of floats The starting value ( s ) for the design variable . This parameter may be a single variable or a numpy array ( or list ) if the function requires more than one variable . The number of variables is determined by the rank ( and if rank == 1 the length ) of this parameter . lower : float or iterable list of floats The lower bound ( s ) for the variable ( s ) . A single variable is permissable even if an array is given for value . However if an array is given for ' lower ' it must be the same length as ' value ' func : python function The python function handle that will be used to apply the design variable upper : float or iterable list of floats The upper bound ( s ) for the variable ( s ) . Same restrictions as ' lower ' scale : float or iterable list of floats The scaling of the variables . A good approximate scale to start with is approximately 1 . 0 / ( upper - lower ) . This gives variables that are of order ~1 . 0 . config : str or list Define what configurations this design variable will be applied to Use a string for a single configuration or a list for multiple configurations . The default value of None implies that the design variable appies to * ALL * configurations .
def addGlobalDV(self, dvName, value, func, lower=None, upper=None, scale=1.0, config=None):
        if self.name is not None:
            dvName = self.name + "_" + dvName
        if isinstance(config, str):
            config = [config]
        self.DV_listGlobal[dvName] = geoDVGlobal(dvName, value, lower, upper, scale, func, config)
def addGlobalDV ( self , dvName , value , func , lower = None , upper = None , scale = 1.0 , config = None ) : if self . name is not None : dvName = self . name + "_" + dvName if isinstance ( config , str ) : config = [ config ] self . DV_listGlobal [ dvName ] = geoDVGlobal ( dvName , value , lower , upper , scale , func , config )
Add a global design variable to the DVGeometry object.
Add a global design variable to the DVGeometry object .
"""
        Add a global design variable to the DVGeometry object. This
        type of design variable acts on one or more reference axis.

        Parameters
        ----------
        dvName : str
            A unique name to be given to this design variable group

        value : float, or iterable list of floats
            The starting value(s) for the design variable. This
            parameter may be a single variable or a numpy array
            (or list) if the function requires more than one
            variable. The number of variables is determined by the
            rank (and if rank ==1, the length) of this parameter.

        lower : float, or iterable list of floats
            The lower bound(s) for the variable(s). A single variable
            is permissable even if an array is given for value. However,
            if an array is given for 'lower', it must be the same length
            as 'value'

        func : python function
            The python function handle that will be used to apply the
            design variable

        upper : float, or iterable list of floats
            The upper bound(s) for the variable(s). Same restrictions as
            'lower'

        scale : float, or iterable list of floats
            The scaling of the variables. A good approximate scale to
            start with is approximately 1.0/(upper-lower). This gives
            variables that are of order ~1.0.

        config : str or list
            Define what configurations this design variable will be applied to
            Use a string for a single configuration or a list for multiple
            configurations. The default value of None implies that the design
            variable appies to *ALL* configurations.
        """ # if the parent DVGeometry object has a name attribute, prepend it
self
dvName
value
func
lower
upper
scale
config