CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Momentum source term problem

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 10, 2009, 13:00
Default Hi. I have a momentum source
  #1
Member
 
Ken Darcovich
Join Date: Mar 2009
Location: Ottawa, Canada
Posts: 34
Rep Power: 17
kdarc is on a distinguished road
Hi. I have a momentum source I need to use (in 2d) that operates with a positive value in the x-direction, but a negative value in the y-direction.

Is there a way to apply source terms to individual components of vectors???

I want to do something along the lines of:
+ fvm::Sp(S,U.component(0)) - fvm::Sp(S,U.component(1))

Any ideas??

thanks,
Ken
kdarc is offline   Reply With Quote

Old   February 10, 2009, 14:53
Default As far as I know its not curre
  #2
Senior Member
 
Eugene de Villiers
Join Date: Mar 2009
Posts: 725
Rep Power: 21
eugene is on a distinguished road
As far as I know its not currently possible. The diagonal coefficient always has to be a scalar, you are trying to make it a vector.
eugene is offline   Reply With Quote

Old   February 10, 2009, 16:17
Default One way to do this may be to s
  #3
Member
 
Ken Darcovich
Join Date: Mar 2009
Location: Ottawa, Canada
Posts: 34
Rep Power: 17
kdarc is on a distinguished road
One way to do this may be to simply specify Ux and Uy as scalars, and solve them separately with their own different source terms. The U vector can simply be recomposed afterwards for other standard operations.

Any obvious problems (that aren't occurring to me!!) with doing this???

Thanks.
kdarc is offline   Reply With Quote

Old   February 11, 2009, 08:52
Default Well the Laplacian operator th
  #4
Senior Member
 
Eugene de Villiers
Join Date: Mar 2009
Posts: 725
Rep Power: 21
eugene is on a distinguished road
Well the Laplacian operator that you need for the pressure equation, is not defined for a vector. I am not sure how you would get around this problem. Perhaps use a sparse tensor?

Other than this I don't see anything fundamental, but I'm sure there will be a lot of operational issues that will complicate the problem.

I have a vague recollection that someone else wanted to do this kind of thing a few years back. Have you tried searching the forum?
eugene is offline   Reply With Quote

Reply


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
momentum source term zwdi FLUENT 14 June 27, 2017 16:40
UDF for source term in momentum equation Enrico FLUENT 9 May 30, 2014 12:34
How can I import a momentum source term from a dat May Huang FLUENT 1 September 5, 2011 06:50
Adding a momentum source term segersson OpenFOAM Running, Solving & CFD 5 March 3, 2006 00:06
PDE in udf for defining momentum source term shekhar FLUENT 0 April 12, 2004 02:43


All times are GMT -4. The time now is 01:32.