|
[Sponsors] |
UDF DEFINE_ADJUST for pseudo-sinusoidal motion |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 2, 2010, 06:26 |
UDF DEFINE_ADJUST for pseudo-sinusoidal motion
|
#1 |
Senior Member
|
Hi guys,
I would like to know (1) how I could model into an UDF an oscillatory motion which is not quite sinusoidal. Imagine a sinusoidal signal with the peaks and valleys flatten out, and between them a steep ramp. So, something between sinusoidal and a series of step functions. I have been using a UDF until now for a sinusoidal function that feeds the rotational speed into fluent. (2) Do you know how I could translate translation data into an analytical function of speed for this case? Many thanks. C. |
|
July 2, 2010, 18:26 |
|
#2 | |
Member
Tim Diller
Join Date: Mar 2010
Location: Austin, TX
Posts: 32
Rep Power: 16 |
Quote:
|
||
July 2, 2010, 18:56 |
|
#3 |
Senior Member
|
Thanks TDI,
I haven't tried that function you menntioned, I'll take a look at it during the weekend. In the mean time, I would really appreciate it if you let me take a look at that example of yours. Regards |
|
July 5, 2010, 09:05 |
|
#4 |
Senior Member
|
Hello again TDI,
I have read a bit about that macro you mentioned. I must apologise if I didn't express myself clearly, I am not looking into grid deformation, actually, I am avoiding it by all means. I have three circular domains, the largest and medium are concentric, and the smallest one, inside the medium size, can be concentric as well or some distance away from the center. And, I would like to be able to set different motions to the medium and smalles domains by one or two UDF, and be able to define time frames for different motions. My input data could be in terms of velocity or position at specific times. Regards |
|
July 5, 2010, 12:43 |
|
#5 |
Member
Tim Diller
Join Date: Mar 2010
Location: Austin, TX
Posts: 32
Rep Power: 16 |
OK, I see.
This would require a DEFINE_PROFILE macro. You write the macro and compile it. Then you link that function to the boundary in question using the BC setup dialog. You can use this to set a parabolic velocity profile, for instance, or to add swirl, etc. I think there are some examples in the documentation of a DEFINE_PROFILE that do exactly the kind of thing you are trying to do. The programming generally goes like this. Fluent passes your function a thread variable. You use that thread variable to start a loop over the nodes of face in question. For each node, you can look up the coordinates and assign the velocity based on the coordinates. Hope this helps. |
|
July 5, 2010, 13:15 |
|
#6 |
Senior Member
|
Thans for following my threads TDI,
I think I have misslead you one more time. The flow has a constant horizontal velocity, defined at the most outer boundary as a velocity_inlet. I want the inner domains, which are circles, to rotate by a motion passed from the UDF. I have been using DEFINE_ADJUST for the rotational speed (omega) of the cell zone containing the aerofoil. This was done for a purely sinusoidal motion. Now, I want to define different motions at different lengths of time during the same calculation. For example, it will start at a "resting position" to ramp up at a given pitching speed towards an angle that will keep constant for some time, during which the medium domain that I mentioned before, will rotate at an approximated rotational speed proportional to the force generated by the aerofoil until it reachs a maximum, at which the medium domain will stop, the aerofoil will pitch down at a given ramp speed, and the whole motion will repeat itself in this way for a few cycles. regards |
|
July 5, 2010, 13:38 |
|
#7 |
Member
Tim Diller
Join Date: Mar 2010
Location: Austin, TX
Posts: 32
Rep Power: 16 |
Would access to the flow-time variable be helpful?
Code:
real flow_time = RP_Get_Real("flow-time"); |
|
July 5, 2010, 13:52 |
|
#8 |
Senior Member
|
Thanks TDI,
Yes, it is most helpful. I can use the "flow-time" as the independent variable in my analytical expressions. I was wondering how I could define the pitching motion of the aerofoil if its center of pitching rotation is away from the "main" rotation axis of the system. Imaging the "main" rotation point is your elbow and the pitching rotation is your wrist. The elbow remains fixed throughout the whole motion and the wrist moves up and down along an arc. The aerofoil will pitch down or up when the arm is at the top or bottom of that arc. How could I define implicitly those two positions for the aerofoil ramping pitch? Regards |
|
July 5, 2010, 14:06 |
|
#9 |
Member
Tim Diller
Join Date: Mar 2010
Location: Austin, TX
Posts: 32
Rep Power: 16 |
You just left my comfort zone. Perhaps some others know of numerical trick to do what you are talking about.
|
|
July 5, 2010, 14:16 |
|
#10 |
Senior Member
|
Thanks for all your help TDI,
Hopefully somebody will read this tread and fell compassionate Kind regards |
|
July 11, 2010, 13:00 |
Dynamic meshing
|
#11 |
New Member
Dave Smith
Join Date: Jul 2010
Posts: 27
Rep Power: 16 |
Hi
I want to learn about dynamic mechsing and need the file cyl3d.msh, does anyone have this file and if possible could you please email it to me at davesmith_01@hotmail.co.uk. I wanted to try and example problem before I try and do my own dynamic meshing Thanks Dave |
|
May 7, 2011, 00:22 |
|
#12 |
New Member
zhang guoqing
Join Date: May 2011
Posts: 10
Rep Power: 15 |
Hello,aerospain:
Do you have solved your problem now? |
|
June 19, 2011, 10:30 |
|
#13 |
Member
Alberto Pellegrino
Join Date: Jan 2011
Posts: 32
Rep Power: 15 |
Hi Aerospain,
I'm trying to do your previous step, I mean a purely sinusoidal motion of a circular grid that contains the airfoil (pitching). And the circular grid (quad) is inside a tri-grid supposed to remain static. Reading on cfd-online I have not figured out yet if I need to use DEFINE_CG_MOTION or DEFINE_GRID_MOTION...or even DEFINE_ADJUST as you mentioned above. - Please can you explain what you did? - Must the node at the interface (between rotating quad-mesh and static tri-mesh) be merged or not? - What setting did you use on Fluent about dynamic mesh? I mean, smoothing, layering, remeshing, or nothing? - Could you kindly show me your UDF? I would really appreciate your help. Many thanks! Kind regards, Alberto |
|
November 29, 2011, 06:55 |
3D dynamic mesh tutorial
|
#14 |
New Member
Darren Cam
Join Date: Nov 2011
Posts: 8
Rep Power: 15 |
Hi people,
I was attempting the 3D dynamic mesh tutorial however I haven't got the cyl3d_new.msh file. If anyone can send me the file please it will be greatly appreciated. Thanks. My email: darren.camilleri90@gmail.com |
|
November 15, 2016, 07:55 |
Rgarding motion of tank
|
#15 |
New Member
classified
Join Date: Oct 2016
Posts: 10
Rep Power: 10 |
Hi...
I am working on a problem of tank sloshing. I have a tank which is half filled and subjected to rolling and pitching motion. I want to simulate it using fluent. I tried it a lot but I could not make it. I have used define CG_MOTION macro. will anyone suggest me which macro has to be used? |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDF problem: incorrect grid motion | Fil | FLUENT | 5 | December 19, 2020 10:16 |
Moving mesh | Niklas Wikstrom (Wikstrom) | OpenFOAM Running, Solving & CFD | 122 | June 15, 2014 07:20 |
UDF for non sinusoidal or varying amplitude motion with respect to time | lalit kumar | FLUENT | 1 | November 13, 2010 17:58 |
Sinusoidal motion udf | urmazda | Fluent UDF and Scheme Programming | 6 | July 30, 2010 12:44 |
UDF error CG Motion | Alex | FLUENT | 0 | March 22, 2006 18:40 |