|
[Sponsors] |
September 17, 2004, 13:30 |
initial conditions with transient UDF
|
#1 |
Guest
Posts: n/a
|
Hi.
I use a transient UDF to simulate the flow around an oscillating NACA section. But the initial conditions are different each time I run a simulation (it is as if, in the function sin(2*pi*f*t), the time t was never the same at the beginning of the simulation); as a result, when I use the data of Cl and Cd registered, I never know which angle of incidence corresponds to each time step. How can I fix this problem? Thank you for help. |
|
September 17, 2004, 14:50 |
Re: initial conditions with transient UDF
|
#2 |
Guest
Posts: n/a
|
Hi,
Each time you run the problem, you NEED to initialize it, under Solve>initialize. You can also choose to initialize the problem from a Boundary, i guess in your case you need to initialize from the inlet. Aravind |
|
September 18, 2004, 07:26 |
Re: initial conditions with transient UDF
|
#3 |
Guest
Posts: n/a
|
I initialize each time from the velocity inlet, but the initial values of x and y velocities (in the "solution initalization" panel) are different each time I do it. Do you know why?
Thank you. Antoine |
|
September 18, 2004, 13:37 |
Re: initial conditions with transient UDF
|
#4 |
Guest
Posts: n/a
|
Hi,
Since your velocity is a function of time, I am guessing that the time is not being initialized to zero at the beginning of the simulation. That means, the UDF is not getting initialized. Can you tell me the procedure, as to how are you doing your problem? may be, if you compiled your function and did the simulation, it might work! (not sure).Hope this helps. |
|
September 19, 2004, 12:51 |
Re: initial conditions with transient UDF
|
#5 |
Guest
Posts: n/a
|
In fact I hadn't checked all the data I had registered and it seems to be all right just with the initialization; the velocity seems to be intialized on the time step where the previous calculation has been stopped, but then after a few time steps the velocity computed is the velocity expected. Sorry about that and thank you for help.
PS: the compilation of the program between each calculation doesn't change anything to the intialization. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
alphaEqn.H in twoPhaseEulerFoam | cheng1988sjtu | OpenFOAM Bugs | 15 | May 1, 2016 17:12 |
Velocity blows up suddenly after 30,000+ iterations | lordvon | OpenFOAM Running, Solving & CFD | 15 | October 19, 2015 14:52 |
Error while running rhoPisoFoam.. | nileshjrane | OpenFOAM Running, Solving & CFD | 8 | August 26, 2010 13:50 |
Modeling in micron scale using icoFoam | m9819348 | OpenFOAM Running, Solving & CFD | 7 | October 27, 2007 01:36 |
Could anybody help me see this error and give help | liugx212 | OpenFOAM Running, Solving & CFD | 3 | January 4, 2006 19:07 |