Steve,
I added the right units to convert.py and now I can run make_flutter_response using SI-mm. I still need to read the docs on how to fork, branch and create a pull request.
Example:
myF06='run037-000.f06'
f06_units={'velocity' : 'mm/s', 'density' : 'Mg/mm^3',
'altitude' : 'ft', 'dynamic_pressure' : 'MPa','eas':'mm/s'}
out_units= out_units = {'velocity' : 'knots', 'density' : 'kg/m^3',
'altitude' : 'ft', 'dynamic_pressure' : 'MPa','eas':'knots'}
c=parse_flutter.make_flutter_response(f06_filename=myF06,f06_units=f06_units,out_units=out_units)
d=parse_flutter.make_flutter_plots(modes=[range(1,15+1)],flutters=c,plot_type='tas',
xlim=0.0, ylim_damping=[-0.1,0.1], ylim_kfreq=[0.0,1000.0], ylim_freq=[0.0,1000.0],
plot_vg=False, plot_vg_vf=True, plot_root_locus=False,
plot_kfreq_damping=False,nopoints=False,noline=False,legend=True)
The downside is that the png that is created is pretty low res compared to the one created using f06 plot_145 on the command line. I can't figure out where is the source code for "f06". Is the binary file installed here "C:\Users\...\anaconda3\Scripts\f06.exe"?
I would like to see if I can define in_units "SI-mm".
Lastly, I tried using the optional argument "vg_vf_filename" but I get an error (Ideally I would like to Include the F06 name in the plot, but at least I'd like to have it on the file, so I can identify which f06 does the plot belong to):
Code:
e=parse_flutter.make_flutter_plots(modes=[range(1,15+1)],flutters=c,plot_type='tas',
xlim=0.0, ylim_damping=[-0.1,0.1], ylim_kfreq=[0.0,1000.0], ylim_freq=[0.0,1000.0],
plot_vg=False, plot_vg_vf=True, plot_root_locus=False,
plot_kfreq_damping=False,nopoints=False,noline=False,legend=True,vg_vf_filename=myF06.rsplit( ".f06", 1 )[ 0 ]+'.png')
Error Msg:
Traceback (most recent call last):
File ~\anaconda3\Lib\site-packages\spyder_kernels\py3compat.py:356 in compat_exec
exec(code, globals, locals)
File c:\...\manual_flutter_plots.py:20
e=parse_flutter.make_flutter_plots(modes=[range(1,15+1)],flutters=c,plot_type='tas',
File c:\github\pynastran\pyNastran\f06\parse_flutter.py:460 in make_flutter_plots
_make_flutter_subcase_plot(
File c:\github\pynastran\pyNastran\f06\parse_flutter.py:513 in _make_flutter_subcase_plot
filenamei = None if vg_vf_filename is None else vg_vf_filename % subcase
TypeError: not all arguments converted during string formatting
Thanks,
Joaquin