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

nonuniform body force loaded from a text file

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Farshad_Noravesh

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   April 18, 2011, 09:06
Default nonuniform body force loaded from a text file
  #1
Member
 
Farshad
Join Date: Oct 2010
Posts: 76
Rep Power: 15
Farshad_Noravesh is on a distinguished road
Hi,
I want to add a nonluniform body force F(x,y) to an equation such as momentum equation. The force function should be loaded from a text file.
So at each point (x,y) the F(x,y) has a value that should be read from the text file.

Please help me how i should define this volScalarField in createFields.

Thanks alot,
Farshad
Prosper likes this.
Farshad_Noravesh is offline   Reply With Quote

 


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
tecio compilation errors in latest 1.6.x rsamuel OpenFOAM Bugs 2 June 25, 2021 08:10
Working directory via command line Luiz CFX 4 March 6, 2011 20:02
Problem installing on Ubuntu 9.10 -> 'Cannot open : No such file or directory' mfiandor OpenFOAM Installation 2 January 25, 2010 09:50
gcc and executable file from Mac to Linux simone Marras Main CFD Forum 0 April 8, 2007 15:49
[blockMesh] Axisymmetrical mesh Rasmus Gjesing (Gjesing) OpenFOAM Meshing & Mesh Conversion 10 April 2, 2007 14:00


All times are GMT -4. The time now is 06:42.