Counting how much mass is added when adding a density floor #272
Replies: 2 comments 3 replies
-
Quick update: That solution appears to work properly. What I do is at the very start of the setup.cpp (outside any loop) define a global
Finally in the
where However this solution is rather ugly, and I am open to ideas that don't rely on creating a global 3D array. Thanks ! |
Beta Was this translation helpful? Give feedback.
-
Hi !
and adding a loop on Or is there something else that would be better optimized ? |
Beta Was this translation helpful? Give feedback.
-
Hi everyone,
I am currently running simulations with dust, adding both a density and a velocity floor, in the InternalBoundary of the setup.cpp
I would like to have an idea of what exactly these floors are doing over the course of the simulation. For instance with the dust density floor, I would like to know how much dust mass I am adding and where. One way to do it would be by an user defined variable. What I would do is create an IdefixArray3D called "added_dust", and in the if condition of the density floor, add the density I am adding to dust->Vc(RHO,k,j,i) to the (k,j,i) cell of "added_dust". Then in ComputeUserVars call "added_dust" so that I can enroll it later in the Setup::Setup.
I don't think I can use the analysis.cpp/hpp for this, because those are called after InternalBoundary, thus after all the cells in which the density is under the floor have been modified. But I might be wrong.
Has any of you thought about this already ? Would you know how to do it in an optimized way ?
Many thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions