Dirichlet inflow boundary conditions #197
Unanswered
TRPrasanna
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Hi @TRPrasanna, You are advancing in the right direction. The correct way to implement Dirichlet boundary conditions is with the user defined BC. You have examples in any of the test cases that use Manufactured Solutions (MS). The easiest trick to have access to dt would be to store it inside the subroutine with a SAVE fortran statement. In the first iteration, dt=t-0. Then, you update it every time you have a new "t" as input in the subroutine. As an alternative, Horses3d supports fixed time step. You can fix the time step in the control file and use it in your subroutine. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I was wondering if the proper way to fix the inflow boundary conditions to a fixed value (say, values corresponding to boundary layer profiles) would be to do this every time step via the UserDefinedPeriodicOperation function in the problem setup file. However, the thermodynamic variables are not passed to the aforementioned function. Is there a more elegant way to do this?
Edit: I just realized that the intended way to do this is by setting the boundary condition to User-defined in the control fine. Then, would the correct way to implement the user-defined BC in the problem file be using UserDefinedState1, which is called once for all the spatial coordinates every time step in the chosen boundary?
Another edit: I have seem to run across an issue in UserDefinedState1 : I need access to the time step size (dt) within this subroutine and I can't see a straightforward way to do so.
Beta Was this translation helpful? Give feedback.
All reactions