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

using groovyBC toPoints?

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

Reply
 
LinkBack Thread Tools Display Modes
Old   April 4, 2012, 06:23
Default using groovyBC toPoints?
  #1
Member
 
fisch
Join Date: Feb 2010
Posts: 97
Rep Power: 7
fisch is on a distinguished road
Hello,

i read that i can use the groovyBC in meshmotion simulations, too.
I try inside the pointDisplacement file the following:

bottom
{
type groovyBC;
value uniform (0 0 0);
valueExpression "vector(0,toPoint(0.05*(sin(pi*time()))),0)";
}

but i get the following error:
--> FOAM FATAL ERROR:
Parser Error at "1.10-16" :"syntax error, unexpected TOKEN_toPoint"
"vector(0,toPoint(0.05*(sin(pi*time()))),0)"
" ^^^^^^^ "

From function parsingValue
in file lnInclude/CommonValueExpressionDriverI.H at line 724.

FOAM exiting


Is it necessary to include there something or did i a mistake???

thanks in advance,
rupert
fisch is offline   Reply With Quote

Old   April 4, 2012, 07:36
Default
  #2
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,914
Rep Power: 40
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by fisch View Post
Hello,

i read that i can use the groovyBC in meshmotion simulations, too.
I try inside the pointDisplacement file the following:

bottom
{
type groovyBC;
value uniform (0 0 0);
valueExpression "vector(0,toPoint(0.05*(sin(pi*time()))),0)";
}

but i get the following error:
--> FOAM FATAL ERROR:
Parser Error at "1.10-16" :"syntax error, unexpected TOKEN_toPoint"
"vector(0,toPoint(0.05*(sin(pi*time()))),0)"
" ^^^^^^^ "

From function parsingValue
in file lnInclude/CommonValueExpressionDriverI.H at line 724.

FOAM exiting


Is it necessary to include there something or did i a mistake???

thanks in advance,
rupert
OK. Two problems here:

a) to construct a pointVectorField it must be "vector(toPoint(0),toPoint(0.05*(sin(pi*time()))), toPoint(0))"
b) it seems that the construction of a pointVectorField is in the grammar for Fields (== funkySetFields) but not in Patches (==groovyBC)

If a bug-report shows up on the OF-extend-Mantis I will take care of point b. Point a you'll have to take care of yourself
gschaider is offline   Reply With Quote

Old   April 4, 2012, 08:17
Default
  #3
Member
 
fisch
Join Date: Feb 2010
Posts: 97
Rep Power: 7
fisch is on a distinguished road
Hi,

point a i already tried, but it seems that he's not able to get the function toPoint.

I tried to post it in the bugtracker; did i do it the right way?

thanks a lot,
rupert
fisch is offline   Reply With Quote

Old   April 10, 2012, 04:34
Default
  #4
Member
 
fisch
Join Date: Feb 2010
Posts: 97
Rep Power: 7
fisch is on a distinguished road
If anybody is interested, the problem is solved. See:

https://sourceforge.net/apps/mantisb...iew.php?id=130
fisch is offline   Reply With Quote

Old   April 10, 2012, 05:14
Default
  #5
Member
 
fisch
Join Date: Feb 2010
Posts: 97
Rep Power: 7
fisch is on a distinguished road
Hi,

now it's running without error messages but the result is not the desired one.
The code only moves the points on the mesh boundary and not the mesh (using the specified meshMotion solver) himself.
What I tried to get is a result like using the BC oscillatingDisplacement...

can you help me?
fisch is offline   Reply With Quote

Old   April 10, 2012, 05:44
Default
  #6
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,914
Rep Power: 40
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by fisch View Post
Hi,

now it's running without error messages but the result is not the desired one.
The code only moves the points on the mesh boundary and not the mesh (using the specified meshMotion solver) himself.
What I tried to get is a result like using the BC oscillatingDisplacement...

can you help me?
Have you set up the cellDisplacement-field to be consistent to be consistent with the point displacement? (have a look at the movingCone-example in the swak ... as far as I remember it is done just by using toFace( ... ) )
gschaider is offline   Reply With Quote

Old   April 10, 2012, 07:13
Default
  #7
Member
 
fisch
Join Date: Feb 2010
Posts: 97
Rep Power: 7
fisch is on a distinguished road
Hi,

you were right; My mistake..

regarding the compiler flag: __linux__ solved the problem with icc
fisch is offline   Reply With Quote

Old   March 5, 2015, 11:57
Default
  #8
Senior Member
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Leoben (Austria)
Posts: 1,086
Blog Entries: 6
Rep Power: 19
Tobi will become famous soon enough
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Hi all,

just one question... it the output of the face to point interpolation always there or could we suppress it?


Thanks in advance,
__________________
Best regards,
Tobias Holzmann

Some interesting OpenFOAM tutorials and videos on www.Holzmann-cfd.de
Tobi 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
groovyBC and funkySetFields married and got a kid named swak4Foam gschaider OpenFOAM 164 January 13, 2015 03:52
groovyBC elevated inlet. pos() issue grjmell OpenFOAM 6 January 23, 2013 09:14
GroovyBC for 2D wave flume! Hisham OpenFOAM Running, Solving & CFD 13 January 20, 2012 06:04
groovyBC and Eqn.setReference() benk OpenFOAM 3 June 2, 2011 08:49
Wall heat transfer using groovyBC (XiFoam solver) usergk OpenFOAM 7 February 4, 2011 14:36


All times are GMT -4. The time now is 05:14.