Tecplot data format example9/4/2023 name, zone = extracted_slice, x = dataset. delete_linemaps () # create line plot from extracted zone data cp_linemap = plot. min ()) extracted_x = xc # switch plot type in current frame frame. as_numpy_array () # normalize x xc = ( x - x. values ( 'x' ) # copy of data as a numpy array x = extracted_x. name = 'Quarter-chord C_p' # get x from slice extracted_x = extracted_slice. SurfaceZones, dataset = dataset ) extracted_slice. extract_slice ( origin = ( 0, 0.25, 0 ), normal = ( 0, 1, 0 ), source = tecplot. save_png ( 'wing.png', 600, supersample = 3 ) # extract an arbitrary slice from the surface data on the wing extracted_slice = tecplot. reset_to_nice () # export image of wing tecplot. show_contour = True # ensure consistent output between interactive (connected) and batch frame. load_tecplot ( datafile ) frame = tecplot. join ( examples_dir, 'OneraM6wing', 'OneraM6_SU2_t' ) dataset = tecplot. tecplot_examples_directory () datafile = os. INFO ) import tecplot # Run this script with "-c" to connect to Tecplot 360 on port 7600 # To enable connections in Tecplot 360, click on: # "Scripting" -> "PyTecplot Connections." -> "Accept connections" import sys if '-c' in sys. Import os import sys import logging logging.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |