CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > CFX

Using general momentum sources to "guide" the flow

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 10, 2013, 09:02
Default Using general momentum sources to "guide" the flow
  #1
Senior Member
 
Lance
Join Date: Mar 2009
Posts: 669
Rep Power: 22
Lance is on a distinguished road
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?
Lance is offline   Reply With Quote

Old   January 12, 2013, 16:31
Default
  #2
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,665
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
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.
ghorrocks is offline   Reply With Quote

Old   May 7, 2013, 10:57
Default
  #3
Senior Member
 
Lance
Join Date: Mar 2009
Posts: 669
Rep Power: 22
Lance is on a distinguished road
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?
Lance is offline   Reply With Quote

Old   May 7, 2013, 20:36
Default
  #4
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,665
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
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.
ghorrocks is offline   Reply With Quote

Old   May 8, 2013, 03:26
Default
  #5
Senior Member
 
Lance
Join Date: Mar 2009
Posts: 669
Rep Power: 22
Lance is on a distinguished road
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.
Lance is offline   Reply With Quote

Old   May 8, 2013, 03:32
Default
  #6
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,665
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
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.
ghorrocks is offline   Reply With Quote

Old   May 8, 2013, 05:20
Default
  #7
Senior Member
 
Lance
Join Date: Mar 2009
Posts: 669
Rep Power: 22
Lance is on a distinguished road
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 :/
Lance is offline   Reply With Quote

Old   May 8, 2013, 11:31
Default
  #8
Senior Member
 
Lance
Join Date: Mar 2009
Posts: 669
Rep Power: 22
Lance is on a distinguished road
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.
Lance is offline   Reply With Quote

Old   May 8, 2013, 23:39
Default
  #9
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,665
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
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.
ghorrocks is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


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