spatial Boundary condition, cartesian to cylindrical, groovyBC
2 Attachment(s)
Hello all,
I am new to OpenFoam, I hope that you may help me. I have run a 3D free-jet I created the mesh as two concentric cylinders (please see attached figure), where the left-side of the interior cylinder is the boundary condition for the velocity. This configuration runs well but I want to modify my mesh. My group uses another code which only works with a structured mesh. I need to compare both codes. I want to set up a boundary condition using an "if statement" to transfer the cartesian coordinate to a cylindrical . The way that I implemented it on other code is shown in the attached image (python). Basically, if the radius is smaller than a value, the velocity profile will be set up to that equation . The velocity depends on time, I implemented that boundary condition using a groovyBC ( I am using the version 2.3.1.) Any suggestion how can I implement the spatial boundary condition ? using two cylinder |
You can either use codedFixedValue to construct it on the fly or make one from scratch following instruction here.
|
Hi,
As long as you are using groovyBC, why not try using the examples, the circulatingSplash example seems to include some of the functionality you may want to use. Regards, Tom |
All times are GMT -4. The time now is 23:51. |