|
[Sponsors] |
UDF for a simple sine function on base of droplet (moving wall) |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
April 21, 2020, 10:00 |
UDF for a simple sine function on base of droplet (moving wall)
|
#1 |
New Member
Join Date: Mar 2020
Posts: 21
Rep Power: 6 |
Hello guys, can anyone help me with creating a UDF file for a simple sinusoidal velocity sin(t), Im new to the UDF topic and had been trying several times for a couple days, but the results are not showing anything at all. Please help!
|
|
April 21, 2020, 10:13 |
Sinusoidal Velocity
|
#2 |
Senior Member
|
For applying a sinusoidal velocity, you do not require a UDF. You can use a transient profile.
__________________
Regards, Vinerm PM to be used if and only if you do not want something to be shared publicly. PM is considered to be of the least priority. |
|
April 21, 2020, 10:18 |
|
#3 |
New Member
Join Date: Mar 2020
Posts: 21
Rep Power: 6 |
How can i do that in the FLUENT workbench? When I am trying to apply the boundary condition, i was unable to choose any settings. Image attached is my case.
|
|
April 21, 2020, 10:41 |
Transient Profile
|
#4 |
Senior Member
|
The information is available in User Guide. Just write out the profile as a simple text file, load it via File > Read > Profile and then it will be available for hooking at the boundary. Format is as follows
((nameofprofile transient 3 0) (time 0 1 2 ) (vel 0.1 -0.1 0.1 )) nameofprofile is a name and user can use any name; no spaces are allowed nor are any capital letters. 3 is number of time points. 0 specifies periodicity. For you it should be 1 since the data is periodic. time values are in second. vel is again a variable and user can use any name. Then its values. All in SI units. transient and time should be written as it is without any modification. With last value as 1, you just need to provide data for one period.
__________________
Regards, Vinerm PM to be used if and only if you do not want something to be shared publicly. PM is considered to be of the least priority. |
|
April 21, 2020, 10:49 |
|
#5 |
New Member
Join Date: Mar 2020
Posts: 21
Rep Power: 6 |
Thank you for the clarification!
|
|
April 21, 2020, 11:30 |
|
#6 | |
New Member
Join Date: Mar 2020
Posts: 21
Rep Power: 6 |
Quote:
|
||
April 21, 2020, 11:38 |
Profile
|
#7 |
Senior Member
|
Could you attach your profile file here?
__________________
Regards, Vinerm PM to be used if and only if you do not want something to be shared publicly. PM is considered to be of the least priority. |
|
April 21, 2020, 11:46 |
|
#8 |
New Member
Join Date: Mar 2020
Posts: 21
Rep Power: 6 |
Here you go, the file attached is applied on the base of the water droplet as shown in the image attached. However there isnt any streamline shown on the cut off plane in the results, which is kind of weird.
|
|
April 21, 2020, 12:23 |
Velocity
|
#9 |
Senior Member
|
I suppose you have applied velocity only in the plane of the wall. Could you check by artificially increasing the velocity value, say 10 times?
__________________
Regards, Vinerm PM to be used if and only if you do not want something to be shared publicly. PM is considered to be of the least priority. |
|
April 21, 2020, 12:30 |
|
#10 | |
New Member
Join Date: Mar 2020
Posts: 21
Rep Power: 6 |
Quote:
By what you had just mentioned, should I not apply the velocity to the bottom plane only? As im trying to replicate the effect of vibration underneath the droplet base |
||
April 21, 2020, 12:36 |
Location of velocity
|
#11 |
Senior Member
|
Yes, it should be applied only to the bottom wall but there are three components of the velocity. You need to apply only for the component(s) in the plane of the wall and not out of the plane. If the bottom wall is drawn on x-y plane, then you can apply profile in x and/or y velocity components but not for the z-velocity. Essentially, this is just a lid driven cavity and is supposed to work rather easily.
The reason you may not see much is the diffusion. Since the flow would be laminar, it would take long time for the momentum to diffuse deep into the drop even if it is a few mm in diameter. To test it, you can try by increasing the viscosity 100 times.
__________________
Regards, Vinerm PM to be used if and only if you do not want something to be shared publicly. PM is considered to be of the least priority. |
|
April 21, 2020, 13:24 |
|
#12 | |
New Member
Join Date: Mar 2020
Posts: 21
Rep Power: 6 |
Quote:
Thank you for the clarification,i tried changing the velocity component. The analysis finally does produce some velocity values. However, I still dont understand the reason behind it. Let say for example i have a motion excitor going up and down through z axis, with a water droplet on top of it, isn't it logical if i apply the velocity profile at the z axis direction as well? Why is it that I need to apply the velocity only at the xy plane? 2.Streamlines showing mostly low velocity values.Only bottom part can be seen having higher velocity values, (as shown in image attached). Is it because of like what you mentioned before about the slow diffusion of the momentum through the water droplet? So to fix that, i need to alter the viscosity? But won't that be affecting the true water behaviour as I am trying to replicate from real life. |
||
April 21, 2020, 14:49 |
Suggestions
|
#13 |
Senior Member
|
1. You can apply velocity in the third direction as well, however, better option for that is to use dynamic mesh. But you can try. If the results are satisfactory, then it is good.
2. Of course, you should not use a different viscosity than what it really is. However, its the job of the viscosity to diffuse the momentum. So, to check whether the boundary condition is really working or not, you can use a higher viscosity. If you observe that the momentum is really being transferred, then the case is setup alright. Reduce the viscosity to its original value and run the case long enough to observe the momentum diffusion reach almost the top surface.
__________________
Regards, Vinerm PM to be used if and only if you do not want something to be shared publicly. PM is considered to be of the least priority. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[snappyHexMesh] How to define to right point for locationInMesh | Mirage12 | OpenFOAM Meshing & Mesh Conversion | 7 | March 13, 2016 15:07 |
Trying to implement a generalised wall function provided by PHOENICS with UDF | hadial | Fluent UDF and Scheme Programming | 0 | December 1, 2015 16:12 |
moving wall udf | ahmadi | Fluent UDF and Scheme Programming | 6 | January 13, 2015 19:40 |
UDF wall function | Davide_sd | Fluent UDF and Scheme Programming | 0 | August 7, 2013 12:56 |
ParaView for OF-1.6-ext | Chrisi1984 | OpenFOAM Installation | 0 | December 31, 2010 07:42 |