CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Pre-Processing

Is it possible to specify fields directly

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 23, 2005, 09:03
Default Hi, everyone. Is it possibl
  #1
Member
 
Efimenko Evgenii
Join Date: Mar 2009
Location: Nizhnij Novgorod, Russia
Posts: 52
Rep Power: 17
evgenii is on a distinguished road
Hi, everyone.

Is it possible in OpenFoam to specify fields in any point (not at the boundary) directly? I mean to assign to field locating in point (x,y,z)some value by using some access function (maybe).
I think it should be possible, but I don't now how.

Hope to get some help.

IMHO User's and Programmer's Guide have one great imperfection, I mean there's no description of classe and functions. Of course, it is possible to view Doxygen documentation, but it is reference-book and IMHO it's hard to use it.
evgenii is offline   Reply With Quote

Old   November 23, 2005, 10:04
Default 1) find the location in the me
  #2
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,905
Rep Power: 33
hjasak will become famous soon enough
1) find the location in the mesh where you want to fix the value. You can do that by using some search alogorithms already pre-packaged or just do your own, based on the cell centres. This will give you the index of the cell where to put the value.

2) for field T (for example) you will then do:

T.internalField()[index] = Your Value Here;

3) Please don't be humble about your opinions :-) I know that the user guides and everything else in FOAM can be improved - feel free to contribute in the way you feel would be most useful. Also, our MFIX friends have got a wiki site with some publicly accesible training documentation that may come in handy so you can have a look there as well.

Enjoy,

Hrv
__________________
Hrvoje Jasak
Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk
hjasak is offline   Reply With Quote

Old   November 24, 2005, 04:55
Default Thank you, it was very useful
  #3
Member
 
Efimenko Evgenii
Join Date: Mar 2009
Location: Nizhnij Novgorod, Russia
Posts: 52
Rep Power: 17
evgenii is on a distinguished road
Thank you, it was very useful information for me.
evgenii 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
[OpenFOAM] Average fields jml ParaView 4 December 15, 2008 11:55
Write Info directly to clipboard braennstroem OpenFOAM 3 July 14, 2008 06:43
Can you make OpenFOAM use ssh directly rather than telnet york OpenFOAM Installation 5 November 13, 2006 04:12
[Other] Importing a mesh in system memory using C directly to OpenFoam Solvers juanduque OpenFOAM Meshing & Mesh Conversion 1 August 10, 2006 04:15
import gambit .neu directly to CFX? jemteo CFX 2 June 6, 2006 15:00


All times are GMT -4. The time now is 08:36.