Editing
IVAJ/Level1
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==<font color="#0000DD">Customized Python Module</font>== To make it possible for us to examine the properties of binary mass-transfer flows from reference frames that have a range of different angular frequencies of rotation, <math>\Omega_\mathrm{frame} = (\Omega_0 + \Delta\Omega)</math>, we wrote a Python-based module – <font face="Courier">SwitchCoord</font> – for insertion into the base [http://www.vistrails.org VisTrails] workflow. Figure 1c shows our resulting customized [http://www.vistrails.org VisTrails] workflow; it differs very little from the base workflow. The [http://www.vistrails.org/index.php/User:Tohline/CustomizedPythonModule#Sidebar sidebar] shows the complete Python source code from our customized module. The code segment that performs the required ''physics analysis'' is short and straightforward. In particular, the <font face="Courier">SwitchCoord</font> module performs the following operations at each grid vertex: * converts the <math>(x, y)</math> Cartesian to <math>(R, \phi)</math> cylindrical coordinates; * divides the momentum components by density to obtain the velocity components if the density is greater than <font face="Courier">minp</font> (otherwise, it sets the velocity components to zero); * shifts the azimuthal velocity component <math>v_\phi</math> to a new, rotating frame of reference by adding <math>R\times \Delta\Omega</math>; * converts the cylindrical velocity components to Cartesian velocity components; and * normalizes the velocities to the maximum velocity <font face="Courier">maxnorm</font> found across the domain where densities are greater than <font face="Courier">minp</font>. We designed the output ports on <font face="Courier">SwitchCoord</font> to provide access to the same type of structured arrays that <font face="Courier">vtkPLOT3DReader</font> generates. But, in our customized [http://www.vistrails.org VisTrails] workflow, which includes <font face="Courier">SwitchCoord</font> (see Figure 1c), the 3D vector field that [http://www.vistrails.org VisTrails] pipes into each of the eight <font face="Courier">Draw_Streamline</font> module groups represents the fluid's velocity distribution as viewed from the rotating frame of reference that the floating-point scalar, <font face="Courier">Omega_frame</font>, specifies.
Summary:
Please note that all contributions to JETohlineWiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
JETohlineWiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Main page
Tiled Menu
Table of Contents
Old (VisTrails) Cover
Appendices
Variables & Parameters
Key Equations
Special Functions
Permissions
Formats
References
lsuPhys
Ramblings
Uploaded Images
Originals
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information