Changing Velocity Boundary Condition after each time-step #497
hamidkavari
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all,
I am running an inflow-outflow combustion simulation with the low-Mach assumption using a single-step mechanism.
For setting the velocity boundary condition, I put a fixed value in
void velocityDirichletConditions(bcData *bc)
for the y-dir velocity.Now I want to calculate the consumption speed on-the-fly and change the boundary condition after each time-step to stabilize the flame.
As I understood, I can use
UDF_ExecuteStep
, which is executed after each time-step on the host side, and the problem is that I don't know how to point tobcData *bc
because it is on the device side. The signature ofUDF_ExecuteStep
has onlynrs_t *nrs
expect time and tstep, which I couldn't find boundary conditions in its class.This is all that I've got from the documentation and my problem. It would be great if anyone knows how can I solve this problem either on the host or device side of the code or any other suggestions are welcome.
Thank you very much for your help.
Beta Was this translation helpful? Give feedback.
All reactions