Replies: 1 comment 5 replies
-
|
Regarding the velocity profiles, if an alternative specification is more suitable for your case, go for it. We expose these functions to users so you can make adjustments as needed for your cases. In general, specifying the value from the analytical profile at the cell center will lead to some numerical error on the average volumetric inflow rate, but this should converge as resolution is added. The ideal solution consistent with the finite volume numerics is probably to analytically integrate the inflow profile over the inflow face of each cell and apply that value. To plot variables beyond the standard state and derived variables, you can create a user-defined derived variable that contains the values you need as (briefly described in the documentation. That may or may not work for your needs depending on whether the necessary data is available in the arguments to that function. Another option would be to write an additional plot file by adding a call to amrex::WriteMultiLevelPlotfile in the source code where the quantity gets computed. If you're a bit more specific about what you want to plot and where it is computed, we may be able to provide a more tailored suggestion. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,in Exec/Production/DiffBunsen2D/pelelmex_prob.H ,line222
This parabolic velocity curve form, when integrated for a given inlet velocity prob_parm.V_fu, does not directly yield the volume flow rate in the form of the average velocity multiplied by the exit area. In actual simulations, the calculation of the mass flow rate of carbon exiting the furnace is very important. I would recommend using this fully developed velocity curve form laminarsmoke ,which, after my calculations, yields the volume flow rate equal to the average velocity multiplied by the exit area.

s_ext[VELY] = 2 * prob_parm.V_fu * (1 - (x[0] * x[0]) / (prob_parm.Xf * prob_parm.Xf));And I have a quesiton about how do I get the desired run data and output it to a plt file.For example, in the process of calculating soot, I want to get the rate of PAH consumption per grid, which is calculated in the source code, how do I pack them into an array and then output them in the Plt file
Beta Was this translation helpful? Give feedback.
All reactions