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

[swak4Foam] an error in new groovyBC

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 6, 2012, 11:18
Default an error in new groovyBC
  #1
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26
immortality is on a distinguished road
I just compiled new groovyBC 0.2.1 and this error is shown,whats the cause?
Create time

Create mesh for time = 0

Reading thermophysical properties

Selecting thermodynamics package ePsiThermo<pureMixture<constTransport<specieThermo <hConstThermo<perfectGas>>>>>
--> FOAM Warning :
From function Field<Type>::Field(const word& keyword, const dictionary&, const label)
in file /home/opencfd/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/Field.C at line 262
Reading "/home/ehsan/Desktop/thesis_Central/0/p::boundaryField::left" from line 30 to line 64
expected keyword 'uniform' or 'nonuniform', assuming deprecated Field format from Foam version 2.0.

--> FOAM FATAL IO ERROR:
wrong token type - expected Scalar, found on line 59 the string "((0<=time()&&time()<=(y_max-pos().y)/vel_r)||(time_1<=time()&&time()<=time_2)||(time_2< =time()&&time()<=(y_max-pos().y)/vel_r+time_2)||(time_3<=time()&&time()<=time_final ))?0:1"

file: /home/ehsan/Desktop/thesis_Central/0/p::boundaryField::left::valueFraction at line 59.

From function operator>>(Istream&, Scalar&)
in file lnInclude/Scalar.C at line 91.

FOAM exiting
immortality is offline   Reply With Quote

Old   December 6, 2012, 11:41
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 immortality View Post
I just compiled new groovyBC 0.2.1 and this error is shown,whats the cause?
Create time

Create mesh for time = 0

Reading thermophysical properties

Selecting thermodynamics package ePsiThermo<pureMixture<constTransport<specieThermo <hConstThermo<perfectGas>>>>>
--> FOAM Warning :
From function Field<Type>::Field(const word& keyword, const dictionary&, const label)
in file /home/opencfd/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/Field.C at line 262
Reading "/home/ehsan/Desktop/thesis_Central/0/p::boundaryField::left" from line 30 to line 64
expected keyword 'uniform' or 'nonuniform', assuming deprecated Field format from Foam version 2.0.

--> FOAM FATAL IO ERROR:
wrong token type - expected Scalar, found on line 59 the string "((0<=time()&&time()<=(y_max-pos().y)/vel_r)||(time_1<=time()&&time()<=time_2)||(time_2< =time()&&time()<=(y_max-pos().y)/vel_r+time_2)||(time_3<=time()&&time()<=time_final ))?0:1"

file: /home/ehsan/Desktop/thesis_Central/0/p::boundaryField::left::valueFraction at line 59.

From function operator>>(Istream&, Scalar&)
in file lnInclude/Scalar.C at line 91.

FOAM exiting
That is not a groovyBC-problem but a PEBCAK (look it up on the forum ): OpenFOAM complains that the value for valueFraction is not a scalar but a string. And it is right: there should be a scalar. The string should go to the entry fractionExpression
__________________
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   December 6, 2012, 12:09
Default
  #3
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26
immortality is on a distinguished road
I want when time is in proper value BC be value if not be gradient how should I do this except at valuFraction?
immortality is offline   Reply With Quote

Old   December 6, 2012, 12:14
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 immortality View Post
I want when time is in proper value BC be value if not be gradient how should I do this except at valuFraction?
The answer is in my last posting as well as in http://openfoamwiki.net/index.php/Co...s_in_the_patch

The frequency of your questions suggests to me that instead of reading documentation (an there is not THAT much) you prefer asking. Problem with that approach is that people may have stopped answering your questions once you come to the parts that are not in the documentation
__________________
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   December 6, 2012, 12:34
Default
  #5
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26
immortality is on a distinguished road
oh there is not something like valueFraction the correct keyword name is fractionExpression.I dont know how this mistake has occured in writing although I have read document several times. however thanks.
immortality 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] groovyBC for oscillatory flow liybzd OpenFOAM Community Contributions 5 November 12, 2018 07:53
[swak4Foam] reactingMultiPhaseEulerFoam problems with groovyBC zanilu70 OpenFOAM Community Contributions 4 December 13, 2016 06:46
[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
[swak4Foam] groovyBC and Eqn.setReference() benk OpenFOAM Community Contributions 3 June 2, 2011 08:49


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