-
Notifications
You must be signed in to change notification settings - Fork 59
Feedback
This page describes feedback from particles to grids and vice versa. Please enable the compilation option FEEDBACK.
Related options: PARTICLE, FEEDBACK
Parameters described on this page: FB_LEVEL, FB_RSEED, FB_SNE, FB_USER
Other related parameters:
Parameters below are shown in the format: Name
(Valid Values) [Default Value]
-
- Description: AMR level to apply feedback.
- Restriction: Must be MAX_LEVEL for now.
-
- Description: Random seed used by feedback.
- Restriction:
-
- Description: Supernova explosion feedback.
- Restriction: Not supported yet.
-
- Description: User-defined feedback. See Add User-defined Feedback for details.
- Restriction:
Follow the steps below to define your feedback when
adding a new simulation named NewProblem
.
-
Go to the new test problem folder and copy the feedback template.
cd src/TestProblem/Hydro/NewProblem cp ../../../Feedback/User_Template/FB_User_Template.cpp FB_NewProblem.cpp
-
Edit the feedback source file
FB_NewProblem.cpp
.-
Rename
User_Template
asNewProblem
. -
Follow the example
src/TestProblem/Hydro/Plummer/FB_Plummer.cpp
to editFB_Init_NewProblem()
,FB_End_NewProblem()
, andFB_NewProblem()
.
-
-
Edit the problem source file
Init_TestProb_Hydro_NewProblem.cpp
to enable this new feedback.-
Put the following function prototype on the top of this file.
#ifdef FEEDBACK void FB_Init_NewProblem(); #endif
-
Set the feedback function pointer in
Init_TestProb_Hydro_NewProblem()
.
# ifdef FEEDBACK FB_Init_User_Ptr = FB_Init_NewProblem; # endif
-
-
Make sure to enable
FEEDBACK
inMakefile
andFB_USER
inInput__Parameter
.
Getting Started
User Guide
- Installation
- Running the Code
- Adding New Simulations
- Runtime Parameters
- MPI and OpenMP
- GPU
- Physics Modules
- Outputs
- Simulation Logs
- Data Analysis
- In Situ Python Analysis
- Test Problems
- Troubleshooting
Advanced Topics
Developer Guide