Model: auto-detect fields from world if None provided
@@ -4,11 +4,9 @@ from phi.flow import *
class Simpleplume(FieldSequenceModel):
def __init__(self):
- FieldSequenceModel.__init__(self, 'Simpleplume', stride=5)
- smoke = world.Smoke(Domain([80, 64], SLIPPERY))
- world.Inflow(Sphere((10, 32), 5), rate=0.2)
- self.add_field('Density', lambda: smoke.density)
- self.add_field('Velocity', lambda: smoke.velocity)
+ FieldSequenceModel.__init__(self, stride=5)
+ world.Smoke(Domain([80, 64], boundaries=SLIPPERY))
+ world.Inflow(Sphere(center=(10, 32), radius=5), rate=0.2)
show()
\ No newline at end of file
