|
[Sponsors] |
Using general momentum sources to "guide" the flow |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
January 10, 2013, 09:02 |
Using general momentum sources to "guide" the flow
|
#1 |
Senior Member
Lance
Join Date: Mar 2009
Posts: 669
Rep Power: 22 |
Hi,
I read in the modeling guide that general momentum sources can be used to force the velocity in a point to be a specific value (chapter 1.3.2.2.2 General Momentum Source in cfx_mod.pdf). So then I guess it is possible compare the computed velocity at a certain location with measurements, and then add or subtract velocity through a user function to get a better (or perfect) agreement with measurements? Ideally the measurements and simulation results should of course overlap and if not, one should try to fix the cause of the discrepancy in the model. But in this way one would be able to guide the flow according to measurements. Im just curious about the idea, anyone got any thoughts or ideas about this? |
|
January 12, 2013, 16:31 |
|
#2 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,872
Rep Power: 144 |
Yes, your comments are correct. Sometimes boundary conditions are not know but the condition at an internal point is. Then a momentum source to drive the flow from that point is useful.
|
|
May 7, 2013, 10:57 |
|
#3 |
Senior Member
Lance
Join Date: Mar 2009
Posts: 669
Rep Power: 22 |
I've been thinking about implementing this for a couple of months now. Say that the velocities in a subdomain are specified by the -C(v-v_spec) approach, using CEL and user functions:
-C*(Velocity u -Subdomain1.Velocity u(x,y,t)) -C*(Velocity v -Subdomain1.Velocity v(x,y,t)) -C*(Velocity w -Subdomain1.Velocity w(x,y,t)) where Subdomain1 is a user function with velocities that vary in space and time. As my specified velocities are quite sparse, I wounder what happens between my prescribed points x,y? Will the user function interpolate between x and y (and t) and prescribe an interpolated velocity, or is the user function ignored and the governing equations solved there instead? If the governing equations are not solved between the prescribed locations, how can one be sure that the flow inside the subdomain is correct? |
|
May 7, 2013, 20:36 |
|
#4 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,872
Rep Power: 144 |
No, the Navier stokes equations are solved between your points - definitely no interpolation!
And in fact the NS equations are also solved in the subdomain, just with a source term which forces it to a specified UVW velocity. |
|
May 8, 2013, 03:26 |
|
#5 |
Senior Member
Lance
Join Date: Mar 2009
Posts: 669
Rep Power: 22 |
Thanks Glenn, I just wanted to make sure that the user function didnt introduce any strange stuff. After all, there is a choice between "Option: Interpolation (from file)" and "Option: Interpolation (data input)" in the user function tab.
|
|
May 8, 2013, 03:32 |
|
#6 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,872
Rep Power: 144 |
Sorry, just reread your question again and I may not have answered correctly.
If you have sparse points defining your driving velocities in the subdomain, it probably does just interpolate between these points. The two options you refer to are simply the methods it uses to get the points from which the interpolation is done. They will both be the same. But if the details of what goes on between points is important for this application I would do some simple tests (put two points in a big subdomain with lots of space between them) and see what happens - just to be sure. |
|
May 8, 2013, 05:20 |
|
#7 |
Senior Member
Lance
Join Date: Mar 2009
Posts: 669
Rep Power: 22 |
Ok, I made a subdomain with two points and there is indeed interpolation between the two prescribed velocities inside the subdomain.
So, back to the drawing board :/ |
|
May 8, 2013, 11:31 |
|
#8 |
Senior Member
Lance
Join Date: Mar 2009
Posts: 669
Rep Power: 22 |
I tried to use a user function to set the constant C to a large value where I want to prescribe the velocities, and C = 0 where I want to solve the N-S equations. In theory it might work (?), but right now the results aren't that accurate. Probably because it screws up the interpolation as it uses the three nearest raw data points to the evaluation point.
|
|
May 8, 2013, 23:39 |
|
#9 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,872
Rep Power: 144 |
Why not put a small subdomain at each of your points? Then the solver will function as normal between the points. A little messy in meshing but it would work.
Also, I looked at source points but you do not seem to be able to do momentum source points. That would have been too easy. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
flow over a cylinder urgent! | kevin | FLUENT | 8 | August 11, 2015 14:00 |
Modelling Tidal Turbine, general momentum source, body forces | st268 | CFX | 6 | September 3, 2012 21:11 |
Non-steady flow simplified for use in Vissim | steamerandy | Main CFD Forum | 0 | October 31, 2011 22:08 |
fluid flow fundas | ram | Main CFD Forum | 5 | June 17, 2000 22:31 |
momentum under-relaxation for compressible flow with SIMPLE | Mihai ARGHIR | Main CFD Forum | 0 | April 7, 2000 05:58 |