fluidsim merge requestshttps://foss.heptapod.net/fluiddyn/fluidsim/-/merge_requests2021-02-19T15:50:05Zhttps://foss.heptapod.net/fluiddyn/fluidsim/-/merge_requests/203Draft: Topic/default/spatial means regions2021-02-19T15:50:05ZPierre AugierDraft: Topic/default/spatial means regionsPierre AugierPierre Augierhttps://foss.heptapod.net/fluiddyn/fluidsim/-/merge_requests/200Topic/default/extend simul2021-02-19T20:33:36ZPierre AugierTopic/default/extend simulI like to introduce a mechanism to "extend a Simul class" with another class.
The first application is to introduce a particular output specialized for one study. Thus, we don't want to have it in a solver used for many applications.
T...I like to introduce a mechanism to "extend a Simul class" with another class.
The first application is to introduce a particular output specialized for one study. Thus, we don't want to have it in a solver used for many applications.
This MR will contain deep changes (also in fluidsim_core), it's a bit tricky and it can have consequences on projects depending on fluidsim_core. Thus, I don't assign to myself this time :slight_smile: !
More coming soon...
## Proposed new API:
```python
# can be anywhere, but should be importable (otherwise, the simulation can't be loaded afterwards)
from fluidsim.extend_simul.spatial_means_center_milestone import SpatialMeansCenter
Simul = SpatialMeansCenter.create_extended_Simul(Simul)
# then, as usual
params = Simul.create_default_params()
...
```
Note: I'm not very happy with the name `create_extended_Simul`...
Then, the simulation can be loaded as usual with `load_sim_for_plots`, `load_state_phys_file` and `load_for_restart`.
There is another case when one wants to plug this output to a simulation already created. Then, I guess we need to do:
```python
params, Simul = load_for_restart(name_dir)
Simul = SpatialMeansCenter.create_extended_Simul(Simul)
SpatialMeansCenter.complete_params_with_default(params)
```Ashwin V. MohananAshwin V. Mohananhttps://foss.heptapod.net/fluiddyn/fluidsim/-/merge_requests/205Fix load_sim_for_plot without phys files2021-02-22T20:42:39ZPierre AugierFix load_sim_for_plot without phys filesPierre AugierPierre Augierhttps://foss.heptapod.net/fluiddyn/fluidsim/-/merge_requests/204Topic/default/spatial means regions2021-03-22T12:58:53ZPierre AugierTopic/default/spatial means regionsPierre AugierPierre Augierhttps://foss.heptapod.net/fluiddyn/fluidsim/-/merge_requests/207Add new options NO_KY0 (2D) and NO_KZ0 (3D)2021-03-30T09:57:57ZPierre AugierAdd new options NO_KY0 (2D) and NO_KZ0 (3D)Pierre AugierPierre Augierhttps://foss.heptapod.net/fluiddyn/fluidsim/-/merge_requests/202Topic/default/spatiotemporal spectra2021-03-31T07:22:54ZJason ReneuveTopic/default/spatiotemporal spectracompute spatiotemporal spectracompute spatiotemporal spectraJason ReneuveJason Reneuvehttps://foss.heptapod.net/fluiddyn/fluidsim/-/merge_requests/206Update doc install from source2021-04-01T13:58:48ZPierre AugierUpdate doc install from sourcePierre AugierPierre Augierhttps://foss.heptapod.net/fluiddyn/fluidsim/-/merge_requests/209Fix animate phys_fields2021-04-04T07:42:55ZPierre AugierFix animate phys_fieldsPierre AugierPierre Augierhttps://foss.heptapod.net/fluiddyn/fluidsim/-/merge_requests/210Try to fix no_vz_kz0 option2021-04-15T08:41:31ZPierre AugierTry to fix no_vz_kz0 optionPierre AugierPierre Augierhttps://foss.heptapod.net/fluiddyn/fluidsim/-/merge_requests/211New temporal_spectra for ns2d solvers2021-04-15T08:57:45ZPierre AugierNew temporal_spectra for ns2d solvers@jreneuve I'm going to need a serious review on this MR! Does it break the temporal spectra for your case?@jreneuve I'm going to need a serious review on this MR! Does it break the temporal spectra for your case?Pierre AugierPierre Augierhttps://foss.heptapod.net/fluiddyn/fluidsim/-/merge_requests/212More plots spatiotemporal2021-04-16T20:49:42ZJason ReneuveMore plots spatiotemporalfix bugs and improve plotsfix bugs and improve plotsJason ReneuveJason Reneuvehttps://foss.heptapod.net/fluiddyn/fluidsim/-/merge_requests/213Add FAQ and general improvements to docs2021-04-27T08:31:01ZAshwin V. MohananAdd FAQ and general improvements to docsI think it is a good idea to have a list of common issues from a beginner perspective documented. Suggestions and additions welcome.I think it is a good idea to have a list of common issues from a beginner perspective documented. Suggestions and additions welcome.https://foss.heptapod.net/fluiddyn/fluidsim/-/merge_requests/214strat/output/spatial_means.py: support loading files without EAs2021-04-28T16:52:28ZPierre Augierstrat/output/spatial_means.py: support loading files without EAsPierre AugierPierre Augierhttps://foss.heptapod.net/fluiddyn/fluidsim/-/merge_requests/216Fix doc temporal and spatiotemporal spectra2021-05-11T12:53:17ZPierre AugierFix doc temporal and spatiotemporal spectraPierre AugierPierre Augierhttps://foss.heptapod.net/fluiddyn/fluidsim/-/merge_requests/217The avail module is no longer available in the MovieWriterRegistry library....2021-05-18T17:57:35ZAntoine BardantThe avail module is no longer available in the MovieWriterRegistry library....The avail module is no longer available in the MovieWriterRegistry library. The list() module must be used instead.The avail module is no longer available in the MovieWriterRegistry library. The list() module must be used instead.https://foss.heptapod.net/fluiddyn/fluidsim/-/merge_requests/218improve phys_fields (skip quiver)2021-05-19T07:09:27ZPierre Augierimprove phys_fields (skip quiver)Pierre AugierPierre Augierhttps://foss.heptapod.net/fluiddyn/fluidsim/-/merge_requests/215spatiotemp-spectra-2d2021-05-20T12:59:27ZPierre Augierspatiotemp-spectra-2dPierre AugierPierre Augierhttps://foss.heptapod.net/fluiddyn/fluidsim/-/merge_requests/219Topic/default/fix plot ns2d strat2021-05-20T13:02:42ZPierre AugierTopic/default/fix plot ns2d stratPierre AugierPierre Augierhttps://foss.heptapod.net/fluiddyn/fluidsim/-/merge_requests/220Fix bug self.keys_fields is altered when plotting kzkhomega spectra (#80)2021-05-25T07:57:40ZJason ReneuveFix bug self.keys_fields is altered when plotting kzkhomega spectra (#80)Fix #80
Deepcopy `self.keys_fields` so it's not altered by further operations.Fix #80
Deepcopy `self.keys_fields` so it's not altered by further operations.https://foss.heptapod.net/fluiddyn/fluidsim/-/merge_requests/222spatiotemporal_spectra: better choice of kh_spectra2021-05-25T13:20:18ZPierre Augierspatiotemporal_spectra: better choice of kh_spectraPierre AugierPierre Augier