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

[swak4Foam] Running pimpleDyMFoam with groovyBC

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By gschaider

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 15, 2013, 20:31
Default Running pimpleDyMFoam with groovyBC
  #1
New Member
 
Join Date: Sep 2010
Posts: 5
Rep Power: 16
lexmatt is on a distinguished road
I am attempting to use groovyBC to control dynamic mesh motion with the solver pimpleDyMFoam.

As a test case, I moved the body with a fixedValue condition on motionU and it worked great. All of the elements in the mesh moved or morphed and maintained good quality.

Then I attempted to use groovyBC and I gave it the same fixed velocity (but I had to use toPoints()) in order to get it to work.

The result is that now only the surface of the body moves and none of the mesh elements move causing that first layer of cells to skew.

I compared the two cases and noticed that when it worked the internalField for meshPhi was non-zero, while for the groovyBC case, it was zero everywhere but at the boundary I was moving.

Does anyone know what I did wrong? Is there a utility I need to run before hand. Did I implement toPoints() incorrectly?

Thanks in advance for your help!

Best,
Matt
Attached Images
File Type: jpg meshMotion.jpg (96.8 KB, 54 views)
lexmatt is offline   Reply With Quote

Old   August 16, 2013, 07:52
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 lexmatt View Post
I am attempting to use groovyBC to control dynamic mesh motion with the solver pimpleDyMFoam.

As a test case, I moved the body with a fixedValue condition on motionU and it worked great. All of the elements in the mesh moved or morphed and maintained good quality.

Then I attempted to use groovyBC and I gave it the same fixed velocity (but I had to use toPoints()) in order to get it to work.

The result is that now only the surface of the body moves and none of the mesh elements move causing that first layer of cells to skew.

I compared the two cases and noticed that when it worked the internalField for meshPhi was non-zero, while for the groovyBC case, it was zero everywhere but at the boundary I was moving.

Does anyone know what I did wrong? Is there a utility I need to run before hand. Did I implement toPoints() incorrectly?

Thanks in advance for your help!

Best,
Matt
Did you change it in cellMotionU AND pointMotionU? Have a look at the movingConeDistorted-example how to do this consistently
immortality likes this.
__________________
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   August 16, 2013, 16:08
Default
  #3
New Member
 
Join Date: Sep 2010
Posts: 5
Rep Power: 16
lexmatt is on a distinguished road
Quote:
Originally Posted by gschaider View Post
Did you change it in cellMotionU AND pointMotionU? Have a look at the movingConeDistorted-example how to do this consistently
Thanks Bernhard!

I was missing the cellMotionUx file.

Best,
Matt
lexmatt 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 issue - k and epsilon sagnikmazumdar OpenFOAM Community Contributions 24 March 1, 2015 08:16
Foam Fatal IO error when running pimpledymfoam orkavic OpenFOAM Running, Solving & CFD 3 December 18, 2013 17:05
Something weird encountered when running OpenFOAM in parallel on multiple nodes xpqiu OpenFOAM Running, Solving & CFD 2 May 2, 2013 05:59
[swak4Foam] groovyBC and Eqn.setReference() benk OpenFOAM Community Contributions 3 June 2, 2011 09:49
Running PimpleDyMFoam in parallel paul b OpenFOAM Running, Solving & CFD 8 April 20, 2011 06:21


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