Skip to content
Snippets Groups Projects

WIP: Gear feedback

Closed Loic Hausammann requested to merge gear_feedback into master
5 unresolved threads

No need to look at it, I am just reviewing my own work (before the next large step).

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
859 933 const struct phys_const* phys_const,
860 934 struct cooling_function_data* cooling) {
861 935
936 fedisableexcept(FE_DIVBYZERO | FE_INVALID | FE_OVERFLOW);
  • 25 25 */
    26 26
    27 27 /* Some standard headers. */
    28 #include <fenv.h>
  • 936 fedisableexcept(FE_DIVBYZERO | FE_INVALID | FE_OVERFLOW);
    937
    862 938 if (GRACKLE_NPART != 1)
    863 939 error("Grackle with multiple particles not implemented");
    864 940
    865 941 /* read parameters */
    866 cooling_read_parameters(parameter_file, cooling);
    942 cooling_read_parameters(parameter_file, cooling, phys_const);
    867 943
    868 944 /* Set up the units system. */
    869 945 cooling_init_units(us, cooling);
    870 946
    871 947 /* Set up grackle */
    872 948 cooling_init_grackle(cooling);
    949
    950 feenableexcept(FE_DIVBYZERO | FE_INVALID | FE_OVERFLOW);
  • 98 return;
    99 }
    100
    101 const float mj = hydro_get_mass(pj);
    102 const float r = sqrtf(r2);
    103
    104 /* Get the kernel for hi. */
    105 float hi_inv = 1.0f / hi;
    106 float hi_inv_dim = pow_dimension(hi_inv); /* 1/h^d */
    107 float xi = r * hi_inv;
    108 float wi, wi_dx;
    109 kernel_deval(xi, &wi, &wi_dx);
    110 wi *= hi_inv_dim;
    111
    112 /* Compute inverse enrichment weight */
    113 const double si_inv_weight = si->feedback_data.enrichment_weight == 0?
  • 30 float delta_mass;
    31
    32 /*! specific energy received from supernovae */
    33 float delta_u;
    34
    35 /*! Momemtum received from a supernovae */
    36 float delta_p[3];
    37
    38 };
    39
    40 /**
    41 * @brief Feedback fields carried by each star particles
    42 */
    43 struct feedback_spart_data {
    44
    45 /*! Inverse of normalisation factor used for the enrichment. */
  • Loic Hausammann
  • added 1 commit

    • c4b3bea8 - GEAR: start implementing the chemistry

    Compare with previous version

  • Loic Hausammann added 3 commits

    added 3 commits

    • 30f86073 - GEAR: chemistry seems to be correctly implemented
    • d4001781 - GEAR: add self shielding
    • fe293ea5 - GEAR: update agora

    Compare with previous version

  • Loic Hausammann added 60 commits

    added 60 commits

    • fe293ea5...e4439b06 - 31 commits from branch master
    • 6cdaedb4 - Remove SupernovaeFeedback example
    • 564641d1 - Add GEAR feedback
    • 8d4c1d41 - Start implementing GEAR feedback and fix a few things
    • ef4bd5cc - Add velocity conservation to gear feedback
    • 01892048 - GEAR: update chemistry
    • 255bcaf2 - GEAR: creaate initial feedback structure
    • 037a7de4 - GEAR: improve momentum conservation
    • 3e2bdfb2 - GEAR feedback: IMF and lifetime implemented
    • cf212683 - GEAR: The initial mass function works
    • f05e80da - GEAR: lifetime is working
    • 762fd676 - GEAR: supernovae rate implemented
    • b4f1a99c - GEAR: split feedback in multiple files
    • 5c71ab98 - GEAR: add units in feedback
    • 4a13bd48 - GEAR: read feedback parameters from table
    • 701246a0 - GEAR: implement reading yields
    • be80e217 - GEAR: implement stellar evolution
    • 5106de13 - GEAR: Add interpolation
    • 74fb295b - GEAR: SNII yields working
    • 6bebc3c0 - GEAR: crash due to nan pos
    • f24ed6e7 - GEAR: feedback almost working
    • 31dd7018 - GEAR: SNII and SNIa seems to work
    • 4094ecad - GEAR: add fields to stars
    • 5ef1eb86 - GEAR: start implementing the chemistry
    • d9f746d0 - GEAR: chemistry seems to be correctly implemented
    • e26cef85 - GEAR: add self shielding
    • 3cb2e6a6 - GEAR: update agora
    • 75d3d68b - Finish implementing self shielding
    • 1c6a0e8d - GEAR: update examplesx
    • a178ccb8 - GEAR: implement restart for the feedback

    Compare with previous version

  • Please register or sign in to reply
    Loading