# initial conditions with transient UDF

 User Name Remember Me Password
 Register Blogs Members List Search Today's Posts Mark Forums Read

 September 17, 2004, 12:30 initial conditions with transient UDF #1 Antoine Pages 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, 13:50 Re: initial conditions with transient UDF #2 Aravind 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, 06:26 Re: initial conditions with transient UDF #3 Antoine Pages 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, 12:37 Re: initial conditions with transient UDF #4 Aravind 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, 11:51 Re: initial conditions with transient UDF #5 Antoine Pages 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.

 Thread Tools Display Modes Linear Mode

 Posting Rules You may not post new threads You may not post replies You may not post attachments You may not edit your posts BB code is On Smilies are On [IMG] code is On HTML code is OffTrackbacks are On Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post lordvon OpenFOAM Running, Solving & CFD 15 October 19, 2015 13:52 cheng1988sjtu OpenFOAM Bugs 14 September 18, 2011 13:46 nileshjrane OpenFOAM Running, Solving & CFD 8 August 26, 2010 12:50 m9819348 OpenFOAM Running, Solving & CFD 7 October 27, 2007 00:36 liugx212 OpenFOAM Running, Solving & CFD 3 January 4, 2006 19:07

All times are GMT -4. The time now is 18:08.

 Contact Us - CFD Online - Top