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

about $internalFields in boundary condition

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 4, 2016, 19:31
Default about $internalFields in boundary condition
  #1
Senior Member
 
Join Date: Jan 2013
Posts: 372
Rep Power: 14
openfoammaofnepo is on a distinguished road
Dear All,

What does it mean by $internalFields? Such as in the following example:

Code:
        type            totalPressure;
        p0              $internalField;
        U               U;
        phi             phi;
        rho             none;
        psi             none;
        gamma           1;
        value           $internalField;
When I used in my simulations with OF2.1.1 fireFOAM solver, I meet the following problem as:
-------------------
--> FOAM FATAL IO ERROR:
compound has already been transfered from token
on line 20 the empty compound of type List<scalar>


file: /home/user/case/0.0039075/p_rgh::boundaryField::OUTFLOW:0 at line 20.

From function token::transferCompoundToken(const Istream& is)
in file lnInclude/token.C at line 99.

FOAM aborting
-------------------

I check the line 20 in the file p_rgh:
it is as follows:

------------
internalField nonuniform List<scalar> // This is line 20
90111
(
...
)
------------

I think the data for the internalField are fine. But I am not sure when I use "$interalFields" as the tutorials, the above mentioned error information always appears. I do not know what is the real reason for this. Anybody has the same problems?

Thank you so much.
OFFO
openfoammaofnepo is offline   Reply With Quote

Old   September 5, 2016, 07:35
Default
  #2
Member
 
Roman
Join Date: Sep 2013
Posts: 83
Rep Power: 13
Roman1 is on a distinguished road
Hello. Everything works OK if BC is taken from the C++ guide (http://cpp.openfoam.org/v4/a02729.html). As I know, the exact value of the pressure must be pointed.
Roman1 is offline   Reply With Quote

Old   September 5, 2016, 13:21
Default
  #3
Senior Member
 
Join Date: Jan 2013
Posts: 372
Rep Power: 14
openfoammaofnepo is on a distinguished road
Thank you for pointing out the link. So do you mean for value in this BC type, is it not good to use $internalField here?

Quote:
Originally Posted by Roman1 View Post
Hello. Everything works OK if BC is taken from the C++ guide (http://cpp.openfoam.org/v4/a02729.html). As I know, the exact value of the pressure must be pointed.
openfoammaofnepo is offline   Reply With Quote

Old   September 6, 2016, 02:47
Default
  #4
Member
 
Roman
Join Date: Sep 2013
Posts: 83
Rep Power: 13
Roman1 is on a distinguished road
Yes, since it does not work.
Roman1 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
sliding mesh problem in CFX Saima CFX 46 September 11, 2021 08:38
Centrifugal fan j0hnny CFX 13 October 1, 2019 14:55
Accessing multiple boundary patches from a custom boundary condition file ripudaman OpenFOAM Programming & Development 0 October 22, 2014 19:34
Radiation interface hinca CFX 15 January 26, 2014 18:11
An error has occurred in cfx5solve: volo87 CFX 5 June 14, 2013 18:44


All times are GMT -4. The time now is 23:05.