|
[Sponsors] |
November 23, 2005, 10:03 |
Hi, everyone.
Is it possibl
|
#1 |
Member
Efimenko Evgenii
Join Date: Mar 2009
Location: Nizhnij Novgorod, Russia
Posts: 52
Rep Power: 17 |
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. |
|
November 23, 2005, 11:04 |
1) find the location in the me
|
#2 |
Senior Member
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,907
Rep Power: 33 |
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 |
|
November 24, 2005, 05:55 |
Thank you, it was very useful
|
#3 |
Member
Efimenko Evgenii
Join Date: Mar 2009
Location: Nizhnij Novgorod, Russia
Posts: 52
Rep Power: 17 |
Thank you, it was very useful information for me.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OpenFOAM] Average fields | jml | ParaView | 4 | December 15, 2008 12:55 |
Write Info directly to clipboard | braennstroem | OpenFOAM | 3 | July 14, 2008 07:43 |
Can you make OpenFOAM use ssh directly rather than telnet | york | OpenFOAM Installation | 5 | November 13, 2006 05:12 |
[Other] Importing a mesh in system memory using C directly to OpenFoam Solvers | juanduque | OpenFOAM Meshing & Mesh Conversion | 1 | August 10, 2006 05:15 |
import gambit .neu directly to CFX? | jemteo | CFX | 2 | June 6, 2006 16:00 |