Commit fc36f42e2ee99e3c7c2b0514b5a8d6026a0d45da
- Diff rendering mode:
- inline
- side by side
sailfish/lbm.py
(8 / 1)
|   | |||
| 252 | 252 | def sim_info(self): | |
| 253 | 253 | """A dictionary of simulation settings.""" | |
| 254 | 254 | ret = {} | |
| 255 | ret['grid'] = self.grid.__name__ | ||
| 255 | 256 | ret['precision'] = self.options.precision | |
| 256 | 257 | ret['size'] = tuple(reversed(self.shape)) | |
| 257 | 258 | ret['visc'] = self.options.visc | |
| … | … | ||
| 690 | 690 | ret = LBMSim.sim_info.fget(self) | |
| 691 | 691 | ret['incompressible'] = self.incompressible | |
| 692 | 692 | ret['model'] = self.lbm_model | |
| 693 | ret['grid'] = self.grid.__name__ | ||
| 694 | 693 | ret['bc_wall'] = self.options.bc_wall | |
| 695 | 694 | ret['bc_velocity'] = self.options.bc_velocity | |
| 696 | 695 | ret['bc_pressure'] = self.options.bc_pressure | |
| … | … | ||
| 790 | 790 | ||
| 791 | 791 | ||
| 792 | 792 | class FreeSurfaceLBMSim(LBMSim): | |
| 793 | |||
| 794 | @property | ||
| 795 | def sim_info(self): | ||
| 796 | ret = LBMSim.sim_info.fget(self) | ||
| 797 | ret['gravity'] = self.gravity | ||
| 798 | return ret | ||
| 799 | |||
| 793 | 800 | def __init__(self, geo_class, options=[], args=None, defaults=None): | |
| 794 | 801 | LBMSim.__init__(self, geo_class, options, args, defaults) | |
| 795 | 802 | self._set_grid('D2Q9') |

