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

[swak4Foam] Error with mapFields using a groovyBC

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 6, 2016, 11:28
Default Error with mapFields using a groovyBC
  #1
Senior Member
 
Agustín Villa
Join Date: Apr 2013
Location: Alcorcón
Posts: 313
Rep Power: 15
agustinvo is on a distinguished road
Hi

I am mapping a domain, where originally I have a BC where I use groovyBC.
Once it is mapped, some errors can appear, that I can solve just replacing my groovyBC with a fixedValue.

The problem is, that after I map, and I reinsert my groovyBC, the solver gives me an error like this:

Code:
--> FOAM FATAL IO ERROR: 
compound has already been transfered from token
    on line 2880035 the empty compound of type List<scalar>

file: /case3D_URANS/0/T.boundaryField.cylWall.value at line 2880035.

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

FOAM aborting

#0  Foam::error::printStack(Foam::Ostream&) at ??:?
#1  Foam::IOerror::abort() at ??:?
#2  Foam::token::transferCompoundToken(Foam::Istream const&) at ??:?
#3  Foam::Istream& Foam::operator>><double>(Foam::Istream&, Foam::List<double>&) at ??:?
#4  Foam::Field<double>::Field(Foam::word const&, Foam::dictionary const&, int) at ??:?
#5  Foam::groovyBCFvPatchField<double>::groovyBCFvPatchField(Foam::fvPatch const&, Foam::DimensionedField<double, Foam::volMesh> const&, Foam::dictionary const&) at ??:?
#6  Foam::fvPatchField<double>::adddictionaryConstructorToTable<Foam::groovyBCFvPatchField<double> >::New(Foam::fvPatch const&, Foam::DimensionedField<double, Foam::volMesh> const&, Foam::dictionary const&) at ??:?
#7  Foam::fvPatchField<double>::New(Foam::fvPatch const&, Foam::DimensionedField<double, Foam::volMesh> const&, Foam::dictionary const&) at ??:?
#8  Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::GeometricBoundaryField::readField(Foam::DimensionedField<double, Foam::volMesh> const&, Foam::dictionary const&) at ??:?
#9  Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::readFields(Foam::dictionary const&) at ??:?
#10  Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::readFields() at ??:?
#11  Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::GeometricField(Foam::IOobject const&, Foam::fvMesh const&) at ??:?
#12  
 at ??:?
#13  __libc_start_main at ??:?
#14  
 at ??:?
Aborted
I have compared with the case before the mapping and everithing seems to be ok. Do you have an idea of this error? Did someone have this problem before?

Thank you!

PS: I attach the original file and the final one
agustinvo is offline   Reply With Quote

Old   October 6, 2016, 20:33
Default
  #2
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by agustinvo View Post
Hi

I am mapping a domain, where originally I have a BC where I use groovyBC.
Once it is mapped, some errors can appear, that I can solve just replacing my groovyBC with a fixedValue.

The problem is, that after I map, and I reinsert my groovyBC, the solver gives me an error like this:

Code:
--> FOAM FATAL IO ERROR: 
compound has already been transfered from token
    on line 2880035 the empty compound of type List<scalar>

file: /case3D_URANS/0/T.boundaryField.cylWall.value at line 2880035.

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

FOAM aborting

#0  Foam::error::printStack(Foam::Ostream&) at ??:?
#1  Foam::IOerror::abort() at ??:?
#2  Foam::token::transferCompoundToken(Foam::Istream const&) at ??:?
#3  Foam::Istream& Foam::operator>><double>(Foam::Istream&, Foam::List<double>&) at ??:?
#4  Foam::Field<double>::Field(Foam::word const&, Foam::dictionary const&, int) at ??:?
#5  Foam::groovyBCFvPatchField<double>::groovyBCFvPatchField(Foam::fvPatch const&, Foam::DimensionedField<double, Foam::volMesh> const&, Foam::dictionary const&) at ??:?
#6  Foam::fvPatchField<double>::adddictionaryConstructorToTable<Foam::groovyBCFvPatchField<double> >::New(Foam::fvPatch const&, Foam::DimensionedField<double, Foam::volMesh> const&, Foam::dictionary const&) at ??:?
#7  Foam::fvPatchField<double>::New(Foam::fvPatch const&, Foam::DimensionedField<double, Foam::volMesh> const&, Foam::dictionary const&) at ??:?
#8  Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::GeometricBoundaryField::readField(Foam::DimensionedField<double, Foam::volMesh> const&, Foam::dictionary const&) at ??:?
#9  Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::readFields(Foam::dictionary const&) at ??:?
#10  Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::readFields() at ??:?
#11  Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::GeometricField(Foam::IOobject const&, Foam::fvMesh const&) at ??:?
#12  
 at ??:?
#13  __libc_start_main at ??:?
#14  
 at ??:?
Aborted
I have compared with the case before the mapping and everithing seems to be ok. Do you have an idea of this error? Did someone have this problem before?

Thank you!

PS: I attach the original file and the final one
To be honest: I'm not 100% if groovyBC works with mapFields. I could but I never really tested it.

Is this the first time you tried mapFields and it doesn't work or did you do this before and this is the first time that it doesn't work?
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   October 7, 2016, 09:46
Default
  #3
Senior Member
 
Agustín Villa
Join Date: Apr 2013
Location: Alcorcón
Posts: 313
Rep Power: 15
agustinvo is on a distinguished road
Hi, thanks for your answer.

I have used before mapFields before without problem, but previously I had no groovyBC's in my cases.

At the end, it seems I did a mistake over there, so I was messing up the file. Today I have tried to do the same, but in two steps (so, from 1 cell depth to 8, and then to 32), I used fixedValue at the very begining, and I edited again my BC's. Now it seems to work.
agustinvo is offline   Reply With Quote

Old   October 7, 2016, 10:11
Default
  #4
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by agustinvo View Post
Hi, thanks for your answer.

I have used before mapFields before without problem, but previously I had no groovyBC's in my cases.

At the end, it seems I did a mistake over there, so I was messing up the file. Today I have tried to do the same, but in two steps (so, from 1 cell depth to 8, and then to 32), I used fixedValue at the very begining, and I edited again my BC's. Now it seems to work.
OK. But of course Mapping should work. I'll look into it if I remember it.
If there is a report in the swak bug-tracker it would help my memory
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider 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
[swak4Foam] How to mapFields with groovyBC? xuegy OpenFOAM Community Contributions 0 June 1, 2017 16:57
[swak4Foam] Change in alpha and U with groovyBC in twoPhaseEulerFoam dani2702 OpenFOAM Community Contributions 0 November 17, 2016 03:30
[swak4Foam] groovyBC issue - k and epsilon sagnikmazumdar OpenFOAM Community Contributions 24 March 1, 2015 07:16
Strange random behaviour of mapFields blaise OpenFOAM Pre-Processing 0 November 3, 2014 09:37
[swak4Foam] groovyBC and Eqn.setReference() benk OpenFOAM Community Contributions 3 June 2, 2011 08:49


All times are GMT -4. The time now is 01:07.