MCPcopy Create free account
hub / github.com/boutproject/BOUT-dev / Model

Class Model

examples/boutpp/simulation.py:6–12  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4bc.init("mesh:n=48")
5
6class Model(bc.PhysicsModel):
7 def init(self,restart):
8 self.dens = bc.create3D("sin(x)")
9 self.solve_for(n=self.dens)
10
11 def rhs(self,time):
12 self.dens.ddt(bc.DDX(self.dens))
13
14
15model = Model()

Callers 1

simulation.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected