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

Possible bug in reconstructPar with new BC

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools 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: 30
Rep Power: 9
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
Super Moderator
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,416
Rep Power: 17
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.
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: 30
Rep Power: 9
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, 18:13
Default
  #4
New Member
 
Peter Wulf
Join Date: Oct 2009
Location: Hamburg, Germany
Posts: 3
Rep Power: 8
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, 07:11
Default
  #5
Super Moderator
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,416
Rep Power: 17
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

Thread Tools
Display Modes

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 On
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 23 July 1, 2016 10:16
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 11:05
Forum y2k Bug Jonas Larsson Main CFD Forum 1 January 5, 2000 11:22


All times are GMT -4. The time now is 08:40.