indep_var_comp.py

OpenMDAO class definition for IndepVarComp

class openmdao.components.indep_var_comp.IndepVarComp(name, val=None, **kwargs)[source]

Bases: openmdao.core.component.Component

A Component that provides an output to connect to a parameter.

apply_linear(mode, ls_inputs=None, vois=(None, ), gs_outputs=None)[source]

For IndepVarComp, just pass on the incoming values.

Args:

mode : string

Derivative mode, can be ‘fwd’ or ‘rev’.

ls_inputs : dict

We can only solve derivatives for the inputs the instigating system has access to. (Not used here.)

vois: list of strings

List of all quantities of interest to key into the mats.

gs_outputs : dict, optional

Linear Gauss-Siedel can limit the outputs when calling apply.

solve_nonlinear(params, unknowns, resids)[source]

Performs no operation.