I never got to the step where we adjust the camera angle, but you have to admit that this script is remarkably easy for what it does. Pprintf(" Plot: Cycle = %d, Time = %g\n",CYCLE,TIME) > OpenDatabase("/Users/kmorel/data/ParaViewData/Data/can.ex2") I just typed this into Visit's script interface, and it pretty much did what we wanted: The VisIt XML State File is too big an complicated to bother the list here. "localhost:C:\\alan\\demos\\Training\\can.ex2" The first four lines could probably be condensed, but I'd rather not hide the connection step.The clip is not completely defined, so I picked a plane.I didn't actually run the script for this data, so a couple things are missing.My_view.WriteImage('canclip.png', 'vtkPNGWriter', 1) My_clip_rep = CreateRepresentation(my_reader, my_view) My_clip = Clip(my_reader, clip_function="Plane") If (PVStartup.GUIClient = 0): connection = SM.Connect() Paraview Python Script with PVFWrap import PVStartup The ParaView state file is too big an complicated to bother to list here. ParaView XML Record and Save State Files for Sample Problem Snapshot to c:\myDirectory\snapshots\picture1.jpgĮnsight Record file Script for problem VERSION 8.26ĭata: reader_option 'Use distribution factors' ONĭata: reader_option 'Ignore side sets' OFFĭata: reader_option 'Ignore node sets' OFFĭata: reader_option 'Use node and element maps' ONĭata: reader_option 'Use higher-order elements' ONĭata: reader_option 'Ignore constant variables' OFFĭata: reader_option 'NaN filter input data' ONĭata: reader_option 'Clip overlapping timesteps' OFFĭata: reader_option 'Autodetect spatial decomp' OFFĭata: reader_option 'Use undef value for missing vars' ONĭata: reader_option 'Ignore elment attribute vars' OFFĭata: reader_option 'Epsilon' 1.000000e+000ĭata: reader_option 'Scale factor' 1.000000e+000ĭata: shift_time 1.000000 0.000000 0.000000ĭata: replace C:/alan/demos/Training/can.ex2Ĭlip: plane 1 -4.727466e+000 -9.445257e-001 -5.110948e+000Ĭlip: plane 2 5.161586e+000 -9.445257e-001 -5.110948e+000Ĭlip: plane 3 5.161586e+000 8.944526e+000 -5.110948e+000 3 ParaView XML Record and Save State Files for Sample ProblemĬonceptual description of problem analysis steps Open c:\myDirectory\data\can.exo.2 Ensight Record file Script for problem.1 Conceptual description of problem analysis steps.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |