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

error reading parameters in dictionary for self-implemented boundary

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 12, 2021, 10:33
Default error reading parameters in dictionary for self-implemented boundary
  #1
New Member
 
Join Date: May 2020
Posts: 14
Rep Power: 6
ruanyg968tf is on a distinguished road
Hello Foamers.
I am a novice to openfoam. I tried to use chtMultiRegionFoam for a simple CHT calculation. What I calculated was flow pass through a hollow cylinder. FixedGradient boundary condition was given at the inner boundary of the cylinder. The calculation could finish successfully if I use fixedGradient boundary condition. But when I copied the fixedGradient directory and changed its name into myFixedGradient and used it in the calculation, the results became incorrect. It seemed that the flux at the inner boundary became zero. Then I printed the names of functions in fixedGradient. It seemed that the second constructor and the first constructor were called during the calculation, and the functions like gradientInternalCoeffs() were not called during the calculation. When I use myFixedGradient() condition,these functions were called, but the values of field gradient_ all equal to zero. The case directory and logs as well as source code for myFixedGradient boundary were attached. Do you have any ideas about these issues? Thanks a lot.
Attached Images
File Type: png snapshot8.png (11.3 KB, 2 views)
Attached Files
File Type: zip cylinder_cht_ke_rhopimple.zip (89.7 KB, 0 views)
File Type: zip myFixedGradient.zip (6.4 KB, 1 views)
File Type: txt log.fixedGradient.txt (24.6 KB, 0 views)
File Type: txt log.myFixedGradient.txt (26.2 KB, 0 views)
ruanyg968tf is offline   Reply With Quote

Reply

Tags
chtmultiregionfoam, fvpatchfield


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
CFD analaysis of Pelton turbine amodpanthee CFX 31 April 19, 2018 19:02
Velocity vector in impeller passage ngoc_tran_bao CFX 24 May 3, 2016 22:16
Difficulty In Setting Boundary Conditions Moinul Haque CFX 4 November 25, 2014 18:30
An error has occurred in cfx5solve: volo87 CFX 5 June 14, 2013 18:44
Low Mixing time Problem Mavier CFX 5 April 29, 2013 01:00


All times are GMT -4. The time now is 15:11.