Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
4
bc.init(
"mesh:n=48"
)
5
6
class
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
15
model = Model()
Callers
1
simulation.py
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected