|
SU2
|
Public Member Functions | |
| def | update (self, ztate) |
| def | __repr__ (self) |
| def | __str__ (self) |
| def | pullnlink (self, config) |
| def | design_vector (self) |
| def | find_files (self, config) |
| def | __setitem__ (self, k, v) |
| def | set_timestamp (self) |
| def | tic (self) |
| def | toc (self, timestamp) |
state = SU2.io.state.State()
This is the State class that should be generated with the
Factory Function SU2.io.state.State_Factory()
Parameters:
none, should be loaded with State_Factory()
Methods:
update() - updates self with another state
pullnlink() - returns files to pull and link
design_vector() - vectorizes design variables
find_files() - finds existing mesh and solutions | def SU2.io.state.State.design_vector | ( | self | ) |
vectorizes State.VARIABLES
| def SU2.io.state.State.find_files | ( | self, | |
| config | |||
| ) |
SU2.io.State.find_files(config)
finds mesh and solution files for a given config.
updates state.FILES with filenames.
files already logged in state are not overridden.
will ignore solutions if config.RESTART_SOL == 'NO'.
| def SU2.io.state.State.pullnlink | ( | self, | |
| config | |||
| ) |
pull,link = SU2.io.State.pullnlink(config)
returns lists pull and link of files for folder
redirection, based on a given config
| def SU2.io.state.State.tic | ( | self | ) |
timestamp = State.tic()
returns the time that this state was last modified
| def SU2.io.state.State.toc | ( | self, | |
| timestamp | |||
| ) |
updated = State.toc(timestamp)
returns True if state was modified since last timestamp
| def SU2.io.state.State.update | ( | self, | |
| ztate | |||
| ) |
Updates self given another state
1.8.12