Академический Документы
Профессиональный Документы
Культура Документы
¾ TAU-Python Implementation
¾ TAU-Python Compilation
¾ TAU-Python: Examples
¾ Summary
TAU-Python:
a term meaning the use of the TAU-Code within a Python
environment
Interfaces for all common TAU modules are available as a library of
functions within Python
Control of a simulation workflow is achieved with a Python script
TAU-Python contains all of the capabilities of the stand-alone TAU-
Code, and has many ‘nice-to-have’ features which are exclusive to
TAU-Python
¾ TAU-Python Implementation
¾ TAU-Python Compilation
¾ TAU-Python: Examples
¾ Summary
Preprocessing
DualGrid Files
Solver
Solver
¾ TAU-Python Implementation
¾ TAU-Python Compilation
¾ TAU-Python: Examples
¾ Summary
int tau_solver_init_prims(void)
int tau_solver_init_prims(void);
{
TauDualGrid *gridlist = get_dualgrid_pointer();
TauPrimVar *p = get_primvar_level(0);
.
.
}
TAU-Python interface-file
%module tau_python
.
.
extern int tau_solver_init_prims(void);
Solver
Parallel Adaptation
Data Management:
- Primary Grid Deformation
- Solution
(re)-Partitioning
Data Extraction
t = T + dt
import PyPrep
import PySolv
Prep = PyPrep.Preprocessor(para_path)
Solver = PySolv.Solver(para_path)
Prep.run()
Solver.run()
tau(“exit”)
The best way to figure out how to build your own TAU-Python script
is to use the example scripts that come with the Code:
The scripts show how to use the more common features of
TAU-Python to achieve results for standard simulation
scenarios in an elegant way
Preprocessing and Solver without Dualgrid File-IO
Polar calculations with multiple parameters
Adaptation loops / Deformation loops
Due to the flexibility of TAU-Python it is nearly impossible to cover
all of the possible variations with the example scripts
Direct manipulation in Python of TAU internal flow variables:
IS NOT SUPPORTED!
¾ TAU-Python Implementation
¾ TAU-Python Compilation
¾ TAU-Python: Examples
¾ Summary
¾ TAU-Python Implementation
¾ TAU-Python Compilation
¾ TAU-Python: Examples
¾ Summary
¾ TAU-Python Implementation
¾ TAU-Python Compilation
¾ TAU-Python: Examples
¾ Summary
CM
FM Filename
Angles / Rates TAU-Python
Forces / Moments
PC
Workstation PC
Cluster
PC
CSM
Workstation
File IO
CSM
FM – –TAU
TAUCoupling:
Coupling: Classic
Classic Staggered with Sub-Cycling
File IO, Filename
No File SentOver
IO, Data Sent OverSocket-Connection
Socket-Connection
Good practice:
Before starting a simulation on a configuration for which a new grid has
been created
Have the code that will actually do the simulation identify any areas
which might be problematic
Obtain a visual representation of the problematic areas, in relation
to the surface of the configuration
Decide whether the identified areas are critical to the simulation
and need to be corrected, or not
tau("exit")
¾ TAU-Python Implementation
¾ TAU-Python Compilation
¾ TAU-Python: Examples
¾ Summary