Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions examples/scroll_compressor_multilump.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ def Compressor(Te = 0,DTsh = 11.1,Tc = 20, Tamb = 25, Nmot = 3600, f = None, One
lumps_energy_balance_callback = ScrollComp.lump_energy_balance_callback
)

t1=default_timer()
t1=timeit.default_timer()
ScrollComp.RK45_eps = 1e-6
ScrollComp.eps_cycle = 3e-3
ScrollComp.verbosity = 10
Expand All @@ -207,7 +207,7 @@ def Compressor(Te = 0,DTsh = 11.1,Tc = 20, Tamb = 25, Nmot = 3600, f = None, One
eps_energy_balance = 0.1 #relaxed multi-lump convergence
)

print('time taken', default_timer()-t1)
print('time taken', timeit.default_timer()-t1)

if '--plot' in sys.argv:
debug_plots(ScrollComp)
Expand Down
5 changes: 3 additions & 2 deletions examples/scroll_compressor_valves.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,8 +242,9 @@ def Compressor(ScrollClass, Te = 253, Tc = 310, f = None, OneCycle = False, Ref
h5 = HDF5Writer()
h5.write_to_file(ScrollComp, HDF5file)

debug_plots(ScrollComp, family='Scroll Compressor')

if plotting:
debug_plots(ScrollComp, family='Scroll Compressor')

return ScrollComp

if __name__=='__main__':
Expand Down
Loading