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

Source Term to pisoFoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 5, 2014, 12:22
Default Source Term to pisoFoam
  #1
New Member
 
Desanga
Join Date: Dec 2013
Posts: 19
Rep Power: 12
desanga is on a distinguished road
Hello,

I need to add source term to pisoFoam. Currently I'm doing it following way

fvVectorMatrix UEqn
(
fvm::ddt(U)
+ fvm::div(phi, U)
+ turbulence->divDevReff(U)
== ro.initForce(U,mesh,Fw)

);

ro.initForce(U,mesh,Fw) returns volVectorField

but I cannot see any signification change in my results. normally is this the way to add any source term to pisoFoam solver? Am I doing it right in Openfoam perspective?

further I'm using homogeneous dynSmagorinsky model as a LES model

Thanks in advance
desanga is offline   Reply With Quote

Old   October 11, 2014, 02:54
Default
  #2
New Member
 
Song
Join Date: Nov 2011
Posts: 12
Rep Power: 14
songwukong is on a distinguished road
i suggest, you should turn to "fvOption" source (in directory OpenFOAM-2.2.x/src ) to add source in to equations.
songwukong is offline   Reply With Quote

Old   October 11, 2014, 09:13
Default
  #3
New Member
 
Desanga
Join Date: Dec 2013
Posts: 19
Rep Power: 12
desanga is on a distinguished road
Quote:
Originally Posted by songwukong View Post
i suggest, you should turn to "fvOption" source (in directory OpenFOAM-2.2.x/src ) to add source in to equations.

Dear song,

Thanks for ryour eply, I'm also thinking about this fvoption. what is the difference between adding explicit source term as in 1# and using fvoption. if you are familiar with fvoptions, please elaborate more information. it might enable faster implementation of code

Thanks
desanga is offline   Reply With Quote

Old   October 11, 2014, 09:26
Default
  #4
New Member
 
Song
Join Date: Nov 2011
Posts: 12
Rep Power: 14
songwukong is on a distinguished road
maybe you can refer to some tutorials.
use some search tools(software) , to see which tutorials have "fvOption" files in directory "system", then look into them carefully.

sorry, i am a new foamer, too, and this is all i can help you
songwukong 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
GPU Linear Solvers for OpenFOAM gocarts OpenFOAM Announcements from Other Sources 37 August 17, 2022 14:22
[Other] OpenFOAM Installation for navalFoam sachinlb OpenFOAM Community Contributions 22 July 28, 2017 05:26
[swak4Foam] Error bulding swak4Foam sfigato OpenFOAM Community Contributions 18 August 22, 2013 12:41
Gravity source term in PisoFoam DanM OpenFOAM Running, Solving & CFD 4 May 24, 2013 11:30
UDFs for Scalar Eqn - Fluid/Solid HT Greg Perkins FLUENT 0 October 11, 2000 03:43


All times are GMT -4. The time now is 19:46.