Skip to content

Update wiki#466

Open
vivi235711 wants to merge 12 commits intogamer-project:mainfrom
vivi235711:UpdateWiki
Open

Update wiki#466
vivi235711 wants to merge 12 commits intogamer-project:mainfrom
vivi235711:UpdateWiki

Conversation

@vivi235711
Copy link
Copy Markdown
Contributor

@vivi235711 vivi235711 commented May 6, 2025

Partially resolve #400.
The remaining part has been completed by @hsinhaoHHuang.

Changes:

Added links, pages, and descriptions for the following parameters:

Particles

  • PAR_TR_VEL_CORR

Timesteps

  • DT__PHASE
  • DT__HYBRID_CFL
  • DT__HYBRID_CFL_INIT
  • DT__HYBRID_VELOCITY
  • DT__HYBRID_VELOCITY_INIT

Refinement

  • OPT__FLAG_ENGY_DENSITY
  • OPT__FLAG_INTERFERENCE
  • OPT__FLAG_SPECTRAL
  • OPT__FLAG_SPECTRAL_N

ELBDM (new page)

  • ELBDM_MASS
  • ELBDM_PLANCK_CONST
  • ELBDM_LAMBDA
  • ELBDM_TAYLOR3_COEFF
  • ELBDM_TAYLOR3_AUTO
  • ELBDM_REMOVE_MOTION_CM
  • ELBDM_BASE_SPECTRAL
  • ELBDM_MATCH_PHASE
  • ELBDM_FIRST_WAVE_LEVEL
  • OPT__RES_PHASE
  • SPEC_INT_TABLE_PATH
  • SPEC_INT_XY_INSTEAD_DEPHA
  • SPEC_INT_VORTEX_THRESHOLD
  • SPEC_INT_GHOST_BOUNDARY

MPI and OpenMP

  • OPT__OVERLAP_MPI
  • OPT__LB_EXCHANGE_FATHER

Hydro

  • MIN_TEMP
  • MIN_ENTR

Gravity

  • EXT_POT_TABLE_DH_X
  • EXT_POT_TABLE_DH_Y
  • EXT_POT_TABLE_DH_Z
  • EXT_POT_TABLE_FLOAT8
  • OPT__GRAVITY_EXTRA_MASS

Interpolation

  • OPT__INT_PHASE
  • New interpolation schemes: |8 | Spectral |

vivi235711 added 4 commits May 5, 2025 14:26
Updated item: PAR_TR_VEL_CORR, DT__PHASE, DT__HYBRID_CFL,
DT__HYBRID_CFL_INIT, DT__HYBRID_VELOCITY, DT__HYBRID_VELOCITY_INIT,
OPT__FLAG_ENGY_DENSITY, OPT__FLAG_INTERFERENCE, OPT__FLAG_SPECTRAL,
OPT__FLAG_SPECTRAL_N, OPT__LB_EXCHANGE_FATHER, OPT__OVERLAP_MPI,
MIN_TEMP, MIN_ENTR, EXT_POT_TABLE_DH_X, EXT_POT_TABLE_DH_Y,
EXT_POT_TABLE_DH_Z, EXT_POT_TABLE_FLOAT8, OPT__GRAVITY_EXTRA_MASS,
OPT__INT_PHASE.
Add new page for ELBDM runtime parameters
Add spectral Interpolation
@@ -81,6 +94,16 @@ set [[PAR_IMPROVE_ACC | Runtime Parameters:-Particles#PAR_IMPROVE_ACC]]=1.
must be disabled. In addition, it is currently recommended to disable
[[AUTO_REDUCE_DT | Runtime Parameters:-Timestep#AUTO_REDUCE_DT]].

<a name="OPT__LB_EXCHANGE_FATHER"></a>
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I'm not sure where to place this parameter. Currently I put here.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I think it's ok not to mention --model=ELBDM here?

* **Restriction:**

OPT__GRAVITY_EXTRA_MASS
<a name="OPT__GRAVITY_EXTRA_MASS"></a>
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Here I didn't write a detailed guide of how to edit this function. Is that ok?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think it might be better to make a brief tutorial such as:

  1. Go to file src/SelfGravity/Poi_AddExtraMassForGravity.cpp.
  2. Copy Poi_AddExtraMassForGravity_Template() and make your own function in your test problem.
  3. Set up Poi_AddExtraMassForGravity_Ptr.

Asking the user to edit src/SelfGravity/Poi_AddExtraMassForGravity.cpp might be misleading.

Instead of writing the guide here I think it might be cleaner to make a new subsection under Adding-New-Simulations#vi-add-problem-specific-functionalities.

Copy link
Copy Markdown
Contributor Author

@vivi235711 vivi235711 Apr 20, 2026

Choose a reason for hiding this comment

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

I think it would be better to put the tutorial on the page gravity to match the existing pattern "external acceleration/potential". But I still added a new subsection under Adding-New-Simulations#vi-add-problem-specific-functionalities and give a link to page gravity.

@vivi235711 vivi235711 marked this pull request as ready for review May 8, 2025 05:13
@jzuhone jzuhone changed the base branch from main to v2.2.x May 10, 2025 17:58
@technic960183
Copy link
Copy Markdown
Member

Hi @vivi235711,

I noticed that this PR is targeting the v2.2.x release branch instead of main. Just wanted to check, is this intentional, or was it meant to go into main? Thanks.

@vivi235711 vivi235711 changed the base branch from v2.2.x to main June 12, 2025 09:45
@vivi235711
Copy link
Copy Markdown
Contributor Author

@jzuhone Hi, I saw that you changed the base branch from main to v2.2.x. I believe this update should be be more appropriate for main branch, so I switched it back. Was there a specific reason for targeting v2.2.x instead?
@technic960183 Thanks for pointing this out!

@jzuhone
Copy link
Copy Markdown
Collaborator

jzuhone commented Jun 12, 2025

@vivi235711 I am not sure how this happened; I didn't intend to do this and I didn't actually hit the buttons for it. I use GitHub on my phone so something accidental may have happened. Sorry about that.

@hyschive hyschive requested a review from hsinhaoHHuang June 23, 2025 07:58
@hyschive hyschive added enhancement doc Documentation fdm Fuzzy dark matter and removed fdm Fuzzy dark matter labels Jun 23, 2025
@hyschive hyschive requested review from HsunYeong and removed request for hsinhaoHHuang February 12, 2026 08:32
@hyschive hyschive assigned HsunYeong and unassigned hsinhaoHHuang Feb 12, 2026
Comment thread doc/wiki/Physics-Modules-related/ELBDM.md
Comment thread doc/wiki/Physics-Modules-related/ELBDM.md Outdated
Comment thread doc/wiki/Physics-Modules-related/ELBDM.md Outdated
Comment thread doc/wiki/Runtime-Parameters-related/Runtime-Parameters:-ELBDM.md Outdated
Comment thread doc/wiki/Runtime-Parameters-related/[Runtime-Parameters]-ELBDM.md
Comment thread doc/wiki/Runtime-Parameters-related/[Runtime-Parameters]-ELBDM.md
Comment thread doc/wiki/Runtime-Parameters-related/[Runtime-Parameters]-ELBDM.md
* **Restriction:**

OPT__GRAVITY_EXTRA_MASS
<a name="OPT__GRAVITY_EXTRA_MASS"></a>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think it might be better to make a brief tutorial such as:

  1. Go to file src/SelfGravity/Poi_AddExtraMassForGravity.cpp.
  2. Copy Poi_AddExtraMassForGravity_Template() and make your own function in your test problem.
  3. Set up Poi_AddExtraMassForGravity_Ptr.

Asking the user to edit src/SelfGravity/Poi_AddExtraMassForGravity.cpp might be misleading.

Instead of writing the guide here I think it might be cleaner to make a new subsection under Adding-New-Simulations#vi-add-problem-specific-functionalities.

Mass introduced here is only used for gravity (e.g., Poisson equation) and
is excluded from other equations (e.g., hydro/MHD/Schrödinger) and output data.
To configure the extra mass, edit /src/SelfGravity/Poi_AddExtraMassForGravity.cpp.
Refer to [[Initialization Function | Adding-New-Simulations#initialization-function]] for details.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think it might be better to refer to #vi-add-problem-specific-functionalities section instead of #initialization-function? Or maybe add a new subsection below #external-potential. See my other comment.

@hyschive
Copy link
Copy Markdown
Contributor

Add ELBDM_RESCALE_MASS_ERROR and ELBDM_RESCALE_MASS_STEPS once #496 is merged.

@hyschive
Copy link
Copy Markdown
Contributor

Add ELBDM_RESCALE_MASS_ERROR and ELBDM_RESCALE_MASS_STEPS once #496 is merged.

#496 has been merged

@hyschive
Copy link
Copy Markdown
Contributor

@vivi235711 When you have time, please update this PR to resolve the conflicts. Thanks!

If you don't have time to address @HsunYeong's comments at the moment, please feel free to let us know. Hsun-Yeong can follow up on them in a separate PR.

Add brief tutorial for OPT__GRAVITY_EXTRA_MASS
Typo fix
 Resolve conflicts
 Fix links
@vivi235711
Copy link
Copy Markdown
Contributor Author

@HsunYeong
Thanks for your review. I've updated the wiki accoding to your comments. Please take a look when you have time.
Main changes:

  • OPT__GRAVITY_EXTRA_MASS brief tutorial
  • Add ELBDM_RESCALE_MASS_ERROR and ELBDM_RESCALE_MASS_STEPS
  • Resolve the conflicts and fix the links.

@hyschive
Copy link
Copy Markdown
Contributor

@vivi235711 I really appreciate you taking the time to update this PR!

@HsunYeong Please help review this PR again after you are back from your trip. Thanks!

Copy link
Copy Markdown
Contributor

@HsunYeong HsunYeong left a comment

Choose a reason for hiding this comment

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

@vivi235711 Thank you for the update. I think the PR is ready once the typo is fixed.

is just to avoid redundant assignments to the same field index variable.

The second parameter should be set to either `FIXUP_FLUX_YES` or `FIXUP_FLUX_NO`.
Tfuld be set to either `FIXUP_FLUX_YES` or `FIXUP_FLUX_NO`.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
Tfuld be set to either `FIXUP_FLUX_YES` or `FIXUP_FLUX_NO`.
The second parameter should be set to either `FIXUP_FLUX_YES` or `FIXUP_FLUX_NO`.

I think some words are accidentally removed here?


The workflow is triggered when changes are pushed to any of the following files:
- `src/Init/Init_Load_Parameter.cpp`
- `example/input/Input__Paramter`
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

There is a typo Paramter, which is generated by line 187 of tool/wiki/sync_runtime_parameter.py. Maybe we can fix it in this PR?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The typo is fixed in #521, you can ignore this comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

doc Documentation enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fill in the missing parameter information

6 participants