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

gradually opening wall

Register Blogs Community New Posts Updated Threads Search

Like Tree4Likes
  • 3 Post By wyldckat
  • 1 Post By wyldckat

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 24, 2012, 16:15
Default gradually opening wall
  #1
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27
immortality is on a distinguished road
hello
I want to simulate a long channel you may assume closed end at right side but at the left side the wall move from rest at a constant velocity downward so that it opens to a constant stagnation pressure and stagnation temperature-that we know the values of them-environment that are greater than inside the channel.how can I model this gradually openning wall? should I mix groovyBC and mixed boundary conditions?how?or this can be done easier?
immortality is offline   Reply With Quote

Old   November 25, 2012, 07:18
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings ehsan,

Someone asked me a similar question a few weeks ago and I took a look at this today. An I saw your post due to some strange spammer that was going around posting some weird text...

Anyway, attached is an example "flexibleSideCube.tar.gz", based on an example case from the OpenFOAM bug tracker: http://www.openfoam.org/mantisbt/view.php?id=566.

The changes I've made were also based on one of examples that swak4Foam has for groovyBC: "Examples/groovyBC/movingConeDistorted/"

You simply need to run:
Code:
./Allrun
for it to do its magic. Keep in mind the changes I've made:
  1. I've used groovyBC for generating the necessary point displacements, which have to be gradual along X, since we want the left side to be fixed.
  2. I've had to add the "cellMotionUz" file, because without it only the top wall would move and the remaining mesh would stay the same.
  3. I've modified "dynamicMeshDict", so that it would distribute the cells a bit better. Look at the example in groovyBC for more ideas on the types of mesh diffusion there are!
  4. I've used moveDynamicMesh only, so the case is merely an example of dynamic mesh and is not prepared yet for using any other solver... except perhaps interDyMFoam, since I didn't modify several files from that other case from the bug tracker.


So as you should be able to figure out, this example only takes care of the dynamic mesh part, it does not show an example of boundary conditions to be used by a fluid solver.


Best regards,
Bruno
Attached Files
File Type: gz flexibleSideCube.tar.gz (3.2 KB, 177 views)
Tobi, immortality and psk like this.
__________________

Last edited by wyldckat; December 1, 2012 at 08:33.
wyldckat is offline   Reply With Quote

Old   December 1, 2012, 08:34
Default
  #3
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
I can't believe I forgot to attach the file... I was probably already very sleepy back then

Anyway, I've attached the missing file to the previous post.
__________________
wyldckat is offline   Reply With Quote

Old   December 1, 2012, 18:08
Default
  #4
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27
immortality is on a distinguished road
Thank you very much dear Bruno.I didn't find anything and thought may you have send the post by mistake or you mention to that link of debug.
thanks very much again.
immortality is offline   Reply With Quote

Old   December 1, 2012, 18:13
Default
  #5
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27
immortality is on a distinguished road
a question! what commands I should write if I dont want to use ./Allrun ?
thank you.
immortality is offline   Reply With Quote

Old   December 1, 2012, 18:23
Default
  #6
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27
immortality is on a distinguished road
I run that.that was really interesting.thank you.
a irrelevant question.how can use the functions of temperature properties of perfect gas in rhoCentralFoam?like Janaf tables?
immortality is offline   Reply With Quote

Old   December 14, 2016, 08:28
Default
  #7
Senior Member
 
Join Date: Mar 2015
Posts: 250
Rep Power: 12
KateEisenhower is on a distinguished road
Hi Bruno,

I try to run flexibleSideCube on OpenFOAM 4.0 and it complains about the non existent groovyBC:

Code:
--> FOAM FATAL IO ERROR: 
Unknown patchField type groovyBC for patch type wall

Valid patchField types are :

21
(
calculated
codedFixedValue
cyclic
cyclicACMI
cyclicAMI
cyclicSlip
empty
fixedNormalSlip
fixedValue
nonuniformTransformCyclic
processor
processorCyclic
slip
symmetry
symmetryPlane
timeVaryingMappedFixedValue
timeVaryingUniformFixedValue
uniformFixedValue
value
wedge
zeroGradient
)
Is it supposed to be available in recent OpenFOAM Versions?

Best regards,

Kate

Quote:
Originally Posted by wyldckat View Post
Greetings ehsan,

Someone asked me a similar question a few weeks ago and I took a look at this today. An I saw your post due to some strange spammer that was going around posting some weird text...

Anyway, attached is an example "flexibleSideCube.tar.gz", based on an example case from the OpenFOAM bug tracker: http://www.openfoam.org/mantisbt/view.php?id=566.

The changes I've made were also based on one of examples that swak4Foam has for groovyBC: "Examples/groovyBC/movingConeDistorted/"

You simply need to run:
Code:
./Allrun
for it to do its magic. Keep in mind the changes I've made:
  1. I've used groovyBC for generating the necessary point displacements, which have to be gradual along X, since we want the left side to be fixed.
  2. I've had to add the "cellMotionUz" file, because without it only the top wall would move and the remaining mesh would stay the same.
  3. I've modified "dynamicMeshDict", so that it would distribute the cells a bit better. Look at the example in groovyBC for more ideas on the types of mesh diffusion there are!
  4. I've used moveDynamicMesh only, so the case is merely an example of dynamic mesh and is not prepared yet for using any other solver... except perhaps interDyMFoam, since I didn't modify several files from that other case from the bug tracker.


So as you should be able to figure out, this example only takes care of the dynamic mesh part, it does not show an example of boundary conditions to be used by a fluid solver.


Best regards,
Bruno
KateEisenhower is offline   Reply With Quote

Old   December 14, 2016, 19:33
Default
  #8
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quote:
Originally Posted by KateEisenhower View Post
I try to run flexibleSideCube on OpenFOAM 4.0 and it complains about the non existent groovyBC:
Quick answer: You need to install swak4Foam, in order to get groovyBC: http://openfoamwiki.net/index.php/In...tion/swak4Foam
KateEisenhower likes this.
__________________
wyldckat is offline   Reply With Quote

Old   June 20, 2017, 07:17
Default
  #9
New Member
 
Kim Le
Join Date: May 2016
Location: Lyon, France
Posts: 21
Rep Power: 10
lethu is on a distinguished road
Hello immortality,

I am interested in using a gradually moving wall to simulate water coming out of a valve.

Have you found out the solution to your question ?
lethu is offline   Reply With Quote

Old   June 24, 2017, 10:56
Default
  #10
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27
immortality is on a distinguished road
Quote:
Originally Posted by lethu View Post
Hello immortality,

I am interested in using a gradually moving wall to simulate water coming out of a valve.

Have you found out the solution to your question ?
Hi my friend
absolutely yes. I did it 3 or 4 years ago and have my code. I did it with groovyBC. what does your model look like? let me know if you needed my code.
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King.
To Be or Not To Be,Thats the Question!
The Only Stupid Question Is the One that Goes Unasked.
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
Natural convection in a closed domain STILL NEEDING help! Yr0gErG FLUENT 4 December 2, 2019 01:04
Very technical question about solving wall boundary layer ... jlb001 FLUENT 6 December 27, 2014 06:56
Changing BC from Opening to Wall during Solving Ahmad M. Kermani CFX 0 December 17, 2008 22:20
Wall functions? Pr Main CFD Forum 7 April 8, 2004 07:15
Quick Question - Wall Function D.Tandra Main CFD Forum 2 March 16, 2004 05:29


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