File tree Expand file tree Collapse file tree 1 file changed +1
-35
lines changed Expand file tree Collapse file tree 1 file changed +1
-35
lines changed Original file line number Diff line number Diff line change 1
1
import pyro .compressible_fv4 .fluxes as flx
2
2
from pyro import compressible_rk
3
3
from pyro .compressible import get_external_sources , get_sponge_factor
4
- from pyro .mesh import fv , integration
4
+ from pyro .mesh import fv
5
5
6
6
7
7
class Simulation (compressible_rk .Simulation ):
@@ -66,37 +66,3 @@ def preevolve(self):
66
66
# we just initialized cell-centers, but we need to store averages
67
67
for var in self .cc_data .names :
68
68
self .cc_data .from_centers (var )
69
-
70
- def evolve (self ):
71
-
72
- """
73
- Evolve the equations of compressible hydrodynamics through a
74
- timestep dt.
75
- """
76
-
77
- tm_evolve = self .tc .timer ("evolve" )
78
- tm_evolve .begin ()
79
-
80
- myd = self .cc_data
81
-
82
- method = self .rp .get_param ("compressible.temporal_method" )
83
-
84
- rk = integration .RKIntegrator (myd .t , self .dt , method = method )
85
- rk .set_start (myd )
86
-
87
- for s in range (rk .nstages ()):
88
- ytmp = rk .get_stage_start (s )
89
- ytmp .fill_BC_all ()
90
- k = self .substep (ytmp )
91
- rk .store_increment (s , k )
92
-
93
- rk .compute_final_update ()
94
-
95
- if self .particles is not None :
96
- self .particles .update_particles (self .dt )
97
-
98
- # increment the time
99
- myd .t += self .dt
100
- self .n += 1
101
-
102
- tm_evolve .end ()
You can’t perform that action at this time.
0 commit comments