Skip to content

Conversation

@vreville
Copy link
Contributor

@vreville vreville commented Jan 20, 2025

This PR adds an option to the bragTDiffusion module. A new keyword is set to either nosat or wcless. With the latter, the heat flux is a combination of the Braginskii heat flux and a collisionless heat flux \propto p v (where p is the thermal fluid pressure and v the bulk velocity). The transition from the Braginskii to the collisionless form is handled through a third parameter alpha (typically an array that depends on the coordinates or the density) while the amplitude of the collisionless heat flux is controlled by a fourth parameter beta, usually constant but can be userdef.

A test and 1D example is given in test/MHD/clessTDiffusion/.
bragTDiffusion tests have been updated to include the new option.

@glesur glesur self-requested a review January 21, 2025 16:18
@vreville
Copy link
Contributor Author

Hum, it looks like the non regression tests from the FargoMHDspherical is trying to compare 16x16x128 cubes with 16x16x64 cubes. I did not touch this file, is this expected ?

Copy link
Contributor

@glesur glesur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, except for the userdef function signature which would benefit from using a single std::vector<IdefixArray3D> as parameter for all of the implementations.

Copy link
Contributor

@glesur glesur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All good, just change std::vector[] by std::vector.at() and we're good to go

@glesur glesur merged commit f87b698 into idefix-code:develop Feb 17, 2025
38 checks passed
@vreville vreville deleted the CollisionlessTC branch February 17, 2025 16:59
@glesur glesur mentioned this pull request Apr 16, 2025
glesur added a commit that referenced this pull request Apr 16, 2025
## [2.2.01] 2025-04-16
### Changed

- Fix a bug that led to instabilities in the RKL scheme with very small grid spacings (#323)
- Fix a bug that prevented Idefix from running with Sycl backend (required on Intel GPUs) (#331)
- Fix an error that led to incorrect electrical current regularisation around the polar axis in non-Ideal MHD  (#333)
- Improve div(B) checks with a dimensionless implementation, avoiding too large divB errors in grids with large stretch factors (#334)

### Added

- Time-Implicit drag for multiple dust species, preventing small time steps for strongly coupled dust grains (#321)
- Collisionless heat flux added to the Braginskii module (#317)
- New global `idfx::DumpArray` debugging function to dump any Idefix array into a numpy array that can read from python (#318)
- Automatic benchmark plots in the documentation (#319)
- More CI tests of grid coarsening (#329)
- Dump outputs based on wallclock time (#335)
---------

Co-authored-by: Victor Réville <victorreville@gmail.com>
Co-authored-by: Hal Bal <vreville@irap.omp.eu>
Co-authored-by: Jean Kempf <jean.kempf@irap.omp.eu>
Co-authored-by: Victor Réville <47865059+vreville@users.noreply.github.com>
Co-authored-by: Marc Coiffier <marc.coiffier@univ-grenoble-alpes.fr>
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants