Which type of Boundary Condition Should I choose?
Dear All,
I’m now doing my project using OpenFOAM designing a PID controller to suppress the vortex shedding. Now I have some problems regarding the control surfaces Boundary Condition. I am planning to have two control jets (Top&Bottom) at a certain angle on the cylinder surface. And I wish to use the velocity measured from a downstream probe and times some constants as the new velocity boundary condition of the jets. This BC should updates in every single iteration. I did some research, and chose to use CodedFixedValue Boundary Condition(Not really sure if this is the suitable one). I wrote the C++ code, which outputs the velocity I need in the last iteration. However, I don’t know how to apply these codes in OpenFOAM. I tried to type the C++ code directly in the code area in the /0/U file, but this doesn’t work. Please give some advice on this problem. |
All times are GMT -4. The time now is 04:44. |