CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Edge

External volume forces

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

 
 
LinkBack Thread Tools Display Modes
Old   March 29, 2011, 09:20
Default External volume forces
  #1
New Member
 
Silvio Merazzi
Join Date: Mar 2011
Posts: 2
Rep Power: 0
merazzi is on a distinguished road
Hej,

How does one add external volume forces in Edge? Is there a documentation on this topic?

Best regards,

Silvio
merazzi is offline  

Old   March 31, 2011, 02:32
Default
  #2
jka
New Member
 
Adam Jirasek
Join Date: Mar 2011
Posts: 15
Rep Power: 6
jka is on a distinguished road
I think you have to go to source code to do it. Do you have access to the source code?

Adam
jka is offline  

Old   April 1, 2011, 04:24
Default
  #3
New Member
 
Silvio Merazzi
Join Date: Mar 2011
Posts: 2
Rep Power: 0
merazzi is on a distinguished road
Yes, we have source code.

Silvio
merazzi is offline  

Old   April 1, 2011, 14:10
Default
  #4
jka
New Member
 
Adam Jirasek
Join Date: Mar 2011
Posts: 15
Rep Power: 6
jka is on a distinguished road
It depends where you define your external force - in mesh points or mesh edges.

For edges:
Check how is it done for other cases. Have a look at the routine called gvortexgen_m.f90. It is called from FSOURCE only at the highest level of the multigrid cycle which I think is the best way. Then in gvortexgen_m.f90 the source term is added to the viscous residuals (line 222 - 235)
Because I define source term on edge I redistributed it to point on the edge with indeces IP1 and IP2. If you define your force directly in points, you do not have to loop over edges and instead make a loop directly over
points.

For points:

Check path fsource_m.f90 -> gsoukz_m.f90 which calls
source terms for turbulence models. They do loop over points.

Hope it helps

Adam
jka is offline  

 

Tags
volume forces

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
CGNS Compiling Diego Main CFD Forum 17 December 21, 2014 02:40
BlockMesh FOAM warning gaottino OpenFOAM Native Meshers: blockMesh 7 July 19, 2010 14:11
On the damBreak4phaseFine cases paean OpenFOAM Running, Solving & CFD 0 November 14, 2008 22:14
fluent add additional zones for the mesh file SSL FLUENT 2 January 26, 2008 12:55
Axisymmetrical mesh Rasmus Gjesing (Gjesing) OpenFOAM Native Meshers: blockMesh 10 April 2, 2007 14:00


All times are GMT -4. The time now is 02:30.