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

Writing a position dependent function

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

Reply
 
LinkBack Thread Tools Display Modes
Old   November 2, 2014, 23:52
Default Writing a position dependent function
  #1
kcn
Member
 
Join Date: May 2014
Posts: 31
Rep Power: 3
kcn is on a distinguished road
Hi,

Can someone please tell me the way to include a position dependent function in a solver code? Such as a source term that depends on (x,y,z) coordinates?

Thanks
kcn is offline   Reply With Quote

Old   November 3, 2014, 06:49
Default
  #2
Senior Member
 
Mohammad Shakil Ahmmed
Join Date: Oct 2012
Location: AU
Posts: 124
Rep Power: 6
ahmmedshakil is on a distinguished road
Hi,
funkySetField or funkySourceFields may serve your purpose.
(https://openfoamwiki.net/index.php/C...funkySetFields)
cheers
shakil
ahmmedshakil is offline   Reply With Quote

Reply

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
Errors during blockMesh meshing Madeleine P. Vincent OpenFOAM Native Meshers: blockMesh 45 December 30, 2015 08:44
non-orthogonal faces and incorrect orientation? nennbs OpenFOAM Native Meshers: blockMesh 7 April 17, 2013 05:42
error message with modeling a cube with a hold at the center hsingtzu OpenFOAM Native Meshers: blockMesh 2 March 14, 2012 10:56
BlockMesh FOAM warning gaottino OpenFOAM Native Meshers: blockMesh 7 July 19, 2010 14:11
Axisymmetrical mesh Rasmus Gjesing (Gjesing) OpenFOAM Native Meshers: blockMesh 10 April 2, 2007 14:00


All times are GMT -4. The time now is 09:47.