|
[Sponsors] |
April 14, 2021, 15:43 |
Vortex simulation using field function
|
#1 |
New Member
Matthieu Cordier
Join Date: Mar 2021
Location: Canada
Posts: 1
Rep Power: 0 |
Hi everyone,
I m currently stuck on my project. I have to simulate 2 vortex. They are created from the Lamb-Oseen equation (tangential velocity). The equation is : Vtheta(r,t)=(A*(1-exp(-r^2/B^2))/2PI*r Only 'r' is not a constant. Therefore, I have to play with the initial velocity. I tried to practice to simplify the problem: Vtheta(r,t=0)=r I created a new cylindrical coordinate system. The middle of the vortex is the middle of the system. Following the user guide, I tried to create a field function but I m stuck on applying it tangentially. I also have the error message: Unable to compute field function on body ... Please check that function is defined here. I also wonder if it is possible on StarCCM + to have two initial conditions, one linked to a different coordinate system to simulate the two vortices. If you have any idea of solution for any of the problems, I will be grateful to you. mc |
|
April 14, 2021, 18:22 |
|
#2 |
Senior Member
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,750
Rep Power: 66 |
You can reference local coordinate systems in field functions but it might make your scratch your head A LOT.
$$Position[0] would normally return the x-coordinate $$Position(@CoordinateSystem("Laboratory.Cylindric al 01 - Popcorn"))[0] would return the 1st coordinate in my laboratory coordinate system which I have named Cylindrical 01 - Popcorn. You need to replace that string with the literal name of your coordinate system. The rest is properly using the marked flags $ versus $$ and [] depending on whether you want to return a scalar or a vector and so on. Star will do the conversions from one vector representation into another for you, you just need to figure out the syntax. You can define your vortex initial condition in the local coordinate system as well (define the tangential velocity). Then you can just apply the tangential velocity field at as the initial condition, Star will convert from tangential velocity to x,y,z velocity. Vectors are easy for Star to convert because you are only converting their representations (i.e. projecting them onto different coordinate systems). |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[swak4Foam] swakExpression not writing to log | alexfells | OpenFOAM Community Contributions | 3 | March 16, 2020 19:19 |
Field FUnction | akshaybagi | STAR-CCM+ | 1 | January 11, 2016 16:57 |
[mesh manipulation] Importing Multiple Meshes | thomasnwalshiii | OpenFOAM Meshing & Mesh Conversion | 18 | December 19, 2015 19:57 |
Steady simulation does not iterate in Time=1 | agustinvo | OpenFOAM Running, Solving & CFD | 3 | November 19, 2015 05:57 |
Moving mesh | Niklas Wikstrom (Wikstrom) | OpenFOAM Running, Solving & CFD | 122 | June 15, 2014 07:20 |