CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   creating an internal field? (https://www.cfd-online.com/Forums/openfoam-programming-development/129982-creating-internal-field.html)

maybee February 17, 2014 16:10

creating an internal field?
 
hi,

as far as I have read here

http://www.cfd-online.com/Forums/ope...daryfield.html

a geometricField consists of an internal and a boundary field where values are stored in the center of each cell (internal field) and at the surface centers of each cell (boundary field).

My question is now can I create a field that only consists of the internal field or do I always have to create a full geometricField and access the internal field with e.g.

Code:

volscalarField MyField(...);
MyField.internalField() = ... ;

?

Reason I am asking this is, that I have to create many fields that only need/should have values in the center of each cell representive for the cell. Therefore I thought it would be unpractical to load them with a boundary field that won t be used.

greetings
maybee

lumpor February 4, 2021 08:50

Hi did you find an answer?

maybee February 4, 2021 17:15

Hi,



actually i can t remember if i found an answer to the question.


Best Regards


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