[FLASH-USERS] QuickFlash Interpolation Question

Alexander Wagner alexander.y.wagner at googlemail.com
Fri Feb 19 05:58:35 EST 2010


Hi Randy, Mats,

I have found that what the recording in the control-commands window 
outputs is not always complete or up-to-date. Also, as someone said, the 
python interface manual is quite outdated so you have to figure out the 
api that aren't documented by other means.

First, you can list all (i think all) api of the visit module in the cli 
with dir(). You can print object attributes (just by typing in the 
object name). If you build visit python interface with your local python 
installation, you can import visit into an ipython session to make 
programming more interactive (see 
https://email.ornl.gov/mailman/htdig/visit-users/2008-May/000234.html )

Searching the visit-users mail often yields answers. Finally, asking the 
VisIt developers is often the fastest way to solve a problem. Sometimes, 
they reply within minutes with an example code.

Best wishes,
Alex



Mats Holmstrom wrote:
>
> Hi Randy,
>   I'm also trying to script Visit plots of FLASH data.
> It would be really helpful to be able to see the Python calls of the GUI.
> I have not been able to do that.
> The "Control-Command" window seems to only be for input of Python 
> commands.
>
> Mats Holmstrom
>
>
> On 02/18/2010 10:35 PM, Randy Hudson wrote:
>>
>> Sam,
>>
>> Resample is documented at 
>> https://wci.llnl.gov/codes/visit/1.5/VisItUsersManual1.5.pdf, and in 
>> visit's onboard manual (probably the same text).
>>
>> The python interface manual is at 
>> https://wci.llnl.gov/codes/visit/1.4.1/PythonInterface1.4.1.pdf.  If 
>> that doesn't suffice, you might learn more from the Command window 
>> (selectable from the Control menu), which shows the python calls that 
>> implement what you're doing in the visit GUI.
>>
>> You submit a python script to visit by running "visit -cli -s 
>> <scriptname>", and you can loop through multiple files in a script.
>>
>>
>> On Feb 18, 2010, at 1:06 PM, Nathan Hearn wrote:
>>
>>> Hi Sam,
>>>
>>>    For automation, you might want to look at the Python interface for
>>> VisIt.  It has been a while since I have used it, but I don't remember
>>> it being very difficult.  (As I recall, the session files that you can
>>> save in VisIt often have a bit of Python code that you can reference.)
>>> Such a script can be run from the command line without requiring the
>>> GUI to load.
>>>
>>>
>>> - Nathan
>>>
>>>
>>> On Thu, Feb 18, 2010 at 08:22, Samuel Friedman 
>>> <friedman at astro.wisc.edu <mailto:friedman at astro.wisc.edu>> wrote:
>>>> Dear Randy,
>>>>
>>>> Where would the documentation for resample be?  Also, can this be done
>>>> through some kind of command line interface?  I don't want to select
>>>> manually "File -> Export" many times (which I need to do).
>>>>
>>>> Thanks,
>>>> Sam
>>
>>
>> Randy.
>>
>>
>>
>



More information about the flash-users mailing list