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

Mesh motion by groovyBc

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 16, 2019, 14:00
Post Mesh motion by groovyBc
  #1
New Member
 
peyman havaej
Join Date: Jan 2016
Posts: 16
Rep Power: 10
peyman.havaej is on a distinguished road
Dear Formers


I wanted to test dynamic mesh motion by groovyBC utility. Hence, I attempt to run the tutorial of movingConeDistorted.


While the mesh can be moved correctly with velocityComponentLaplacian solver, When I run the movingConeDistorted case with velocityLaplacian solver, the mesh did not move by groovyBC boundary condition.

Is it a bug in groovyBC which cause mesh does not move? or is something wrong in this case setup?


Could someone give me an explanation about this problem, please?
I appreciate that.
Thank you.
peyman.havaej is offline   Reply With Quote

Old   August 19, 2019, 03:29
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 peyman.havaej View Post
Dear Formers


I wanted to test dynamic mesh motion by groovyBC utility. Hence, I attempt to run the tutorial of movingConeDistorted.


While the mesh can be moved correctly with velocityComponentLaplacian solver, When I run the movingConeDistorted case with velocityLaplacian solver, the mesh did not move by groovyBC boundary condition.

Is it a bug in groovyBC which cause mesh does not move? or is something wrong in this case setup?


Could someone give me an explanation about this problem, please?
I appreciate that.
Thank you.

Tthe movingConeDistorted case is unchanged since 2012 and uses velocityLaplacian since then. At least the one in swak4Foam.


Which version are you using? (of groovyBC? Which OpenFOAM-version?)
__________________
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 19, 2019, 03:52
Default
  #3
New Member
 
peyman havaej
Join Date: Jan 2016
Posts: 16
Rep Power: 10
peyman.havaej is on a distinguished road
Quote:
Originally Posted by gschaider View Post
Tthe movingConeDistorted case is unchanged since 2012 and uses velocityLaplacian since then. At least the one in swak4Foam.


Which version are you using? (of groovyBC? Which OpenFOAM-version?)
Thanks for your reply.
I use OpenFoam extend 4.0 and swak4foam 0.4.0.
peyman.havaej is offline   Reply With Quote

Old   August 23, 2019, 05:03
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 peyman.havaej View Post
Thanks for your reply.
I use OpenFoam extend 4.0 and swak4foam 0.4.0.

Two very unsatisfactory answers
- works for me
- your versions (both foam-extend and swak4foam) are rather old (I haven't got a fe4.0 installation. Otherwise I could check whether this works with the current swak4foam version)
__________________
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

Last edited by gschaider; August 23, 2019 at 05:04. Reason: Because
gschaider is offline   Reply With Quote

Old   August 23, 2019, 06:51
Default
  #5
New Member
 
peyman havaej
Join Date: Jan 2016
Posts: 16
Rep Power: 10
peyman.havaej is on a distinguished road
Quote:
Originally Posted by gschaider View Post
Two very unsatisfactory answers
- works for me
- your versions (both foam-extend and swak4foam) are rather old (I haven't got a fe4.0 installation. Otherwise I could check whether this works with the current swak4foam version)

Thanks for your answer
I installed the new version of swak4Foam according to openfoamwiiki; unfortunately, it did not work.
Since I attempt to simulate a FSI problem with solids4foam toolkit, I have to use fe40.


A trick which I found for resolving the mesh motion with groovyBC is as follow.


in contrast to the original movingConeDistorted case, the boundary condition for the moving wall was defined in the cellMotion as below:


movingWall
{
type groovyBC;
value uniform (0 0 0);
valueExpression "vector(sin(pi*time()/0.006)*(
0.2+pos().y*1.2e2),0,0)";
}



and for pointMotion:


movingWall
{
type groovyBC;
value (0 0 0);
valueExpression "toPoint(cellMotionU)";
}



with these modifications, the mesh is moved without any problem by velocityLaplacian solver. However, I am not sure that these changes in the boundary conditions of cellMotion and pointMotion will result in correct mesh motion or not.


Please kindly find the attached files. I will be delighted if I receive your suggestions and comments.

Attached Files
File Type: zip movingConeDistorted.zip (18.4 KB, 14 views)
peyman.havaej is offline   Reply With Quote

Reply

Tags
boundary condition, dynamic mesh, groovybc, openfoam, swak4foam


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
how to set periodic boundary conditions Ganesh FLUENT 15 November 18, 2020 07:09
dynamicFvMesh - tabulated motion of a solid body + mesh morphing HendrikW OpenFOAM Pre-Processing 3 December 3, 2019 03:05
Mesh motion with Translation & Rotation Doginal CFX 2 January 12, 2014 07:21
3D Hybrid Mesh Errors DarrenC ANSYS Meshing & Geometry 11 August 5, 2013 07:42
Dynamic moving mesh Pei-Ying Hsieh (Hsieh) OpenFOAM Running, Solving & CFD 64 June 7, 2012 11:04


All times are GMT -4. The time now is 12:44.