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

Possible bug in reconstructPar with new BC

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By mattijs

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 30, 2009, 12:11
Unhappy Possible bug in reconstructPar with new BC
  #1
Member
 
Flavio Galeazzo
Join Date: Mar 2009
Location: Karlsruhe, Germany
Posts: 34
Rep Power: 18
flavio_galeazzo is on a distinguished road
Hello Foamers,

I am facing a problem using reconstructPar to reconstruct cases using a new developed BC. The new velocity BC is based on the turbulentInlet BC, having a reference field (vectorField), a fluctuation scale (vector) and some scalar parameters.

When I run the reconstructPar, it writes all parameters as expected, only the reference field is wrongly written as a scalarField with nonsense values.

I have tested versions 1.5.x and 1.6, the same problem appears.

Have someone an idea how to solve (or bypass) this problem?
flavio_galeazzo is offline   Reply With Quote

Old   October 1, 2009, 15:40
Default
  #2
Senior Member
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26
mattijs is on a distinguished road
Make sure you implement rmap and automap methods. Use any other fvPatchField that has a additional field, e.g. totalPressure.
belier1988 likes this.
mattijs is offline   Reply With Quote

Old   October 2, 2009, 04:33
Default
  #3
Member
 
Flavio Galeazzo
Join Date: Mar 2009
Location: Karlsruhe, Germany
Posts: 34
Rep Power: 18
flavio_galeazzo is on a distinguished road
Hello Mattijs,

Thank you for the prompt reply. You were right, it was a problem with the automap and rmap methods. It is working well right now.

Thank you again!
flavio_galeazzo is offline   Reply With Quote

Old   December 6, 2009, 17:13
Default
  #4
New Member
 
Peter Wulf
Join Date: Oct 2009
Location: Hamburg, Germany
Posts: 3
Rep Power: 16
peterW is on a distinguished road
Hello,

it seems that I am facing a similar problem. I changed the inletOutlet fvPatch (from OF 1.6) by making the valueFraction() depending on a field value in the local patch cell. The new velocity BC works fine in serial and parallel computations.

However, when I have used it in parallel, I get the same problem as already described above with reconstructPar. I tried to use automap and rmap and I compiled the BC as part of the solver and alternatively as a dynamic library (is that necessary for reconstructPar?). But that did not change anything. When I set the name of the BC back to inletOutlet in all the processor directories reconstructPar works fine again.

Any ideas what I should look for or what I could have missed?

Thanks
Peter
peterW is offline   Reply With Quote

Old   December 7, 2009, 06:11
Default
  #5
Senior Member
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26
mattijs is on a distinguished road
reconstructPar does not 'know' your boundary condition - it only knows the boundary conditions from the libraries it is linked with. In your system/controlDict add a

libs ("libYourLibrary.so")

to make it 'know' your boundary conditions.
mattijs 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
reconstructPar --> fileName::stripInvalid() called for invalid fileName commandtouse adona058 OpenFOAM Bugs 34 December 8, 2022 21:27
Bug in reconstructPar david OpenFOAM Bugs 10 May 26, 2009 12:11
Problem with reconstructPar fabianpk OpenFOAM 5 August 14, 2007 09:17
Bug reports Mattijs Janssens (Mattijs) OpenFOAM 0 January 10, 2005 10:05
Forum y2k Bug Jonas Larsson Main CFD Forum 1 January 5, 2000 10:22


All times are GMT -4. The time now is 22:04.