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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 18, 2011, 10:06
Default nonuniform body force loaded from a text file
  #1
Member
 
Farshad
Join Date: Oct 2010
Posts: 76
Rep Power: 16
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

Old   April 22, 2011, 10:52
Default
  #2
Senior Member
 
maysmech's Avatar
 
Join Date: Jan 2010
Posts: 347
Blog Entries: 2
Rep Power: 17
maysmech is on a distinguished road
I have same question.
maysmech is offline   Reply With Quote

Old   March 2, 2016, 16:38
Default
  #3
Member
 
Charlie
Join Date: Dec 2010
Location: USA
Posts: 85
Rep Power: 16
cheng1988sjtu is on a distinguished road
Hi,

I have the same issue here, did yo find the solution to this?

Charlie
cheng1988sjtu is offline   Reply With Quote

Old   March 26, 2016, 06:20
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quick answer with questions: Without more details, it's very hard to help here. There is a thread here on the forum that explains what should be provided so that people are able to answer to your questions: http://www.cfd-online.com/Forums/ope...-get-help.html

Because the main problem is that the applied force field may or may not be constant as time passes by, therefore this is the first problem.

The second problem is that without a test case, it's very hard to be certain that we're able to provide you with the correct answer. Because the quickest answer is to simply convert the force into a surface pressure field, defined on the boundary of the object where the force is meant to be applied.
Right now I can't remember if there is already such a boundary condition, but as I've already mentioned, we need to know if this field is constant over time or if it should change with the flow.

edit: Recent thread on this topic: http://www.cfd-online.com/Forums/ope...interfoam.html
__________________

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


All times are GMT -4. The time now is 22:00.