Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • SWIFTsim SWIFTsim
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 57
    • Issues 57
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 21
    • Merge requests 21
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • SWIFT
  • SWIFTsimSWIFTsim
  • Issues
  • #221
Closed
Open
Issue created Sep 21, 2016 by Matthieu Schaller@matthieuOwner

hydro_set_internal_energy() and hydro_set_entropy() for GIZMO

In the current version, these two functions don't update the state of the particles. If hydro_get_internal_energy() is called after hydro_set_internal_energy()the returned value is not the value we just set.

The conserved values and the primitives both have to be updated. The idea is that these functions should be used for feedback, cooling, etc. and should set the particles in a new valid state. So the pressure, sound speed, thermal energy etc. all have to be updated such that they are all consistent with each others.

An example of this can be found in the Gadget2 SPH implementation.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking