This package contains the OpenMDAO Standard Library. It’s intended to contain all of the plugins that are officially supported and released as part of openmdao.
Pseudo package containing plugins from the OpenMDAO Standard Library.
Bases: object
An iterator that returns Case objects from a passed-in list of cases. This can be useful for runtime-generated cases from an optimizer, etc.
Bases: openmdao.main.component.Component
Run an external code as a component.
Copies files from directory that match patterns to the current directory and ensures they are writable.
Copy inputs from inputs_dir that match patterns. This can be useful for resetting problem state.
Copy files from results_dir that match patterns. This can be useful for workflow debugging when the external code takes a long time to execute.
Removes existing output (but not in/out) files, If resources have been specified, then an appropriate server is allocated and the command is run on that server. Otherwise runs the command locally.
Stop the external code.
Bases: openmdao.main.component.Component
A Component that encapsulates another Component and mimics its input/output interface.
Default execution behavior is to set all inputs in the model, execute it, and update all outputs with the model’s outputs. Other classes can override this function to introduce other behaviors.
Return the list of names of public inputs that correspond to model inputs.
Return the list of names of public outputs that correspond to model outputs.
Copy the values of the Mimic’s inputs into the inputs of the model.
Copy output values from the model into the Mimic’s outputs.
Bases: openmdao.main.driver.Driver
Adds a design variable to the driver. ‘ref’ is a string refering to the public variable the driver should vary during execution. ‘low’ and ‘high’ refer to the minimum and maximum allowed values for the optimizer to use. If neither are specified, the min and max will default to the values in the metadata of the public variable being referenced. If they are not specified in the metadata and not provided as arguments a ValueError is raised.
Adds an event variable to the driver, which the driver will the set before each iteration. ‘ref’ is string refering to the public event variable on some component.
Bases: object
Bases: object
Calculates the Morris-Mitchell sampling criterion for input DOE
Interchanges pairs of randomly chosen elements within randomly chosen columns of a doe a number of times. The result of this operation will also be a Latin hypercube.
(rowsxcolumns) size of the LatinHypercube doe
Bases: openmdao.main.driver.Driver
Run a set of cases provided by an ICaseIterator in a manner similar to the ROSE framework. Concurrent evaluation is supported, with the various evaluations executed across servers obtained from the ResourceAllocationManager.
Runs each case in iterator and records results in recorder.
Resume execution. If remove_egg is True, then the egg file created for concurrent evaluation is removed at the end of the run.
Setup to begin new run. If replicate, then replicate the model and save to an egg file first (for concurent evaluation).
Evaluate the next case.
Avoid default driver handling of stop signal.
Bases: exceptions.Exception
Raised when a server thread has problems.
conmindriver.py - Driver for the CONMIN optimizer.
Bases: openmdao.main.driver.Driver
Driver wrapper of Fortran version of CONMIN.
Todo
Make CONMIN’s handling of user calculated gradients accessible through CONMINdriver
Perform the optimization.
A simple Pyevolve-based driver for OpenMDAO
Bases: openmdao.main.driver.Driver
Genetic algorithm for the OpenMDAO frameowork, based on the Pyevolve Genetic algorithm module.
adds a parameter to the driver.
Removes all parameters from the genetic instance
Perform the optimization
Returns a list of the names of the parameters currently in the genetic instance
removes the specified parameter
A simple iteration driver. Basically runs a workflow, pasing the output to the input for the next iteration. Relative change and number of iterations are used as termination criterea.
Bases: openmdao.main.driver.Driver
A simple iteration driver. Basically runs a workflow, pasing the output to the input for the next iteration. Relative change and number of iterations are used as termination criterea.
Perform the iteration.
Bases: openmdao.main.driver.Driver
A Driver that runs a set of cases provided by an ICaseIterator sequentially and records the results in a CaseRecorder. This is intended for test cases or very simple models only. For a more full featured Driver with similar functionality, see CaseIteratorDriver.
For each case coming from the iterator, the workflow will be executed once.
Runs each case in iterator and records results in recorder.
Trait for numpy array variables, with optional units
Bases: enthought.traits.trait_numeric.Array
A Public Variable wrapper for a numpy array with optional units.
Returns a string describing the type handled by Array.
Return a TraitValMetaWrapper object. Its value attribute will be filled in by the caller.
Validates that a specified value is valid for this trait. Units are converted as needed.
Bases: object
A DomainObj represents a (possibly multi-zoned) mesh and data related to that mesh.
Add zones from other to self, retaining names where possible. Zone names will be prepended with prefix. If make_copy is True then a deep copy of each zone is made rather than just referring to a shared instance.
Add a Zone. If name is None or blank, then a default of the form zone_N is used. The resulting name will be prepended with prefix. If make_copy is True then a deep copy of each zone is made rather than just referring to a shared instance. Returns the added zone.
Returns a deep copy of self.
Deallocate resources.
Returns list of coordinate ranges for each zone.
Test if self and other are equivalent. tolerance is the maximum relative difference in array values to be considered equivalent.
Convert to cartesian coordinate system. axis specifies which is the cylinder axis (‘z’ or ‘x’).
Convert to cylindrical coordinate system. axis specifies which is the cylinder axis (‘z’ or ‘x’).
Convert to left-handed coordinate system.
Convert to right-handed coordinate system.
Remove zone, specified either by name or object reference. Returns the removed zone.
Rename zone to name.
Rotate about the X axis by deg degrees.
Rotate about the Y axis by deg degrees.
Rotate about the Z axis by deg degrees.
Returns list of coordinate index limits for each zone.
Translate coordinates.
Returns name that zone is bound to.
Bases: object
Contains solution variables for a Zone. All variables have the same shape and grid location.
Add a numpy.ndarray and bind to name. Returns the added array.
Add a Vector and bind to name. Returns the added vector.
Convert to other-handed coordinate system.
Number of ghost cells for each index direction.
Position at which data is located.
Test if self and other are equivalent. tolerance is the maximum relative difference in array values to be considered equivalent.
Convert to cartesian coordinate system. The associated GridCoordinates must be in cylindrical form. axis specifies which is the cylinder axis (‘z’ or ‘x’).
Convert to cylindrical coordinate system. The associated GridCoordinates must be in cylindrical form. axis specifies which is the cylinder axis (‘z’ or ‘x’).
Return name of object.
Rotate about the X axis by deg degrees.
Rotate about the Y axis by deg degrees.
Rotate about the Z axis by deg degrees.
Bases: openmdao.lib.traits.domain.vector.Vector
Coordinate data for a Zone.
Number of ghost cells for each index direction.
Test if self and other are equivalent. tolerance is the maximum relative difference in array values to be considered equivalent.
Convert to cartesian coordinate system. axis specifies which is the cylinder axis (‘z’ or ‘x’).
Convert to cylindrical coordinate system. axis specifies which is the cylinder axis (‘z’ or ‘x’).
Translate coordinates.
Functions to read and write a DomainObj in Plot3D format.
Default argument values are set for a typical 3D multiblock single-precision Fortran unformatted file. When writing, zones are assumed in Cartesian coordinates with data located at the vertices.
Returns a DomainObj initialized from Plot3D grid_file and f_file. Variables are assigned to names of the form f_N.
Returns a DomainObj initialized from Plot3D grid_file.
Returns a DomainObj initialized from Plot3D grid_file and q_file. Q variables are assigned to ‘density’, ‘momentum’, and ‘energy_stagnation_density’. Scalars are assigned to ‘mach’, ‘alpha’, ‘reynolds’, and ‘time’.
Returns a list of zone dimensions from Plot3D grid_file.
Writes domain to grid_file and f_file in Plot3D format. If varnames is None, then all arrays and then all vectors are written.
Writes domain to grid_file in Plot3D format.
Writes domain to grid_file and q_file in Plot3D format. Requires ‘density’, ‘momentum’, and ‘energy_stagnation_density’ variables as well as ‘mach’, ‘alpha’, ‘reynolds’, and ‘time’ scalars.
Register a surface probe function.
Calculate metrics on mesh surfaces. Currently only supports 3D structured grids with cell-centered data.
Returns a list of metric values in the order of the variables list.
Bases: object
Vector data for a FlowSolution. In cartesian coordinates, array indexing order is x,y,z; so an ‘i-face’ is a y,z surface. In cylindrical coordinates, array indexing order is z,r,t; so an ‘i-face’ is a r,t surface.
Returns tuple of component ranges.
Convert to other-handed coordinate system.
Test if self and other are equivalent. tolerance is the maximum relative difference in array values to be considered equivalent.
Convert to cartesian coordinate system. The associated GridCoordinates must be in cylindrical form. axis specifies which is the cylinder axis (‘z’ or ‘x’).
Convert to cylindrical coordinate system. The associated GridCoordinates must be in cylindrical form. axis specifies which is the cylinder axis (‘z’ or ‘x’).
Rotate about the X axis by deg degrees.
Rotate about the Y axis by deg degrees.
Rotate about the Z axis by deg degrees.
Returns tuple of index limits.
Bases: object
One zone in a possibly multi-zone DomainObj.
Coordinate system in use.
Returns tuple of coordinate ranges.
Test if self and other are equivalent. tolerance is the maximum relative difference in array values to be considered equivalent.
Convert to cartesian coordinate system. axis specifies which is the cylinder axis (‘z’ or ‘x’).
Convert to cylindrical coordinate system. axis specifies which is the cylinder axis (‘z’ or ‘x’).
Convert to left-handed coordinate system.
Convert to right-handed coordinate system.
Rotate about the X axis by deg degrees.
Rotate about the Y axis by deg degrees.
Rotate about the Z axis by deg degrees.
Returns tuple of coordinate index limits.
Translate coordinates.
Trait for enumerations, with optional alias list
Bases: enthought.traits.trait_handlers.TraitType
A Public Variable wrapper for an enumeration, which is a variable that can assume one value from a set of specified values.
Returns a general error string for Enum.
Validates that a specified value is valid for this trait.
Support for files, either as File or external files.
Bases: enthought.traits.trait_handlers.TraitType
A trait wrapper for a FileRef object. For input files legal_types may be set to a list of expected ‘content_type’ strings. Then upon assignment the actual ‘content_type’ must match one of the legal_types strings. Also for input files, if local_path is set, then upon assignent the associated file will be copied to that path.
If ‘local_path’ is set on an input, then copy the source FileRef’s file to that path.
Verify that value is a FileRef of a legal type.
Trait for floating point variables, with optional min, max, and units
Bases: enthought.traits.trait_handlers.TraitType
A Public Variable wrapper for floating point number valid within a specified range of values.
Returns a string describing the type handled by Float.
Return a TraitValMetaWrapper object. Its value attribute will be filled in by the caller.
Validates that a specified value is valid for this trait. Units are converted as needed.
Trait for floating point variables, with optional min and max
Bases: enthought.traits.trait_handlers.TraitType
A Public Variable wrapper for an integer valid within a specified range of values.
Returns a string describing the type handled by Int.
Validates that a specified value is valid for this trait.