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

Sliding Interface in OpenFoam?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 6, 2010, 10:01
Default Sliding Interface in OpenFoam?
  #1
Senior Member
 
Robert
Join Date: Sep 2010
Posts: 158
Rep Power: 15
lordvon is on a distinguished road
The following is part of my correspondence with 'enquiries@opencfd.co.uk':

"...In which case it is likely you will need to perform these calculations using a
sliding-interface. This functionality is not yet part of OpenFOAM but we have a
detailed plat to implement it and are looking for sponsors; would you be
interested in sponsoring this work?"

(I was asking him if modeling a 2D simulation with a rotor and stator is possible)

But I do a little bit of searching on these forums and it appears OpenFoam is capable of implementing sliding interfaces:

http://www.cfd-online.com/Forums/ope...e-problem.html
(and others, including a pdf written by Dr. Jasak)

In short:
Are sliding interfaces buit into OpenFoam?
How can I implement it? Is there an example file I can learn from and build off of?

Thanks for your time.
lordvon is offline   Reply With Quote

Old   September 6, 2010, 10:41
Default
  #2
Senior Member
 
Elvis
Join Date: Mar 2009
Location: Sindelfingen, Germany
Posts: 620
Blog Entries: 6
Rep Power: 24
elvis will become famous soon enough
Hi,

did you hear of the Dev-Version

If you are not afraid of compiling the Dev-Version yourself, you will get Sliding
Interface for free.

Read more how to do it http://openfoamwiki.net/index.php/Ho...mpile_OpenFOAM =>I do not know a better link, but I do not like this one! Sorry for my incompetence.


Well you need svn installed!

1) mkdir $HOME/OpenFOAM (if not allready exists)
2) cd $HOME/OpenFOAM
3) svn co https://openfoam-extend.svn.sourcefo...nFOAM-1.5-dev/
4) Edit your .bashrc file in ~/.bashrc to let the last line read
# OpenFOAM environment variables. $HOME/OpenFOAM/OpenFOAM-1.5/etc/bashrc#take care herehttp://openfoamwiki.net/index.php/Ho...ment_variables
5) ./allmake

a little bit to much shortend


But if you are afraid of compiling get the Live Stick http://www.cfd-online.com/Forums/ope...lax-based.html or Live CD from the Workshop in Montreal 2009 or this year Workshop in Gothenburg
elvis is offline   Reply With Quote

Old   September 6, 2010, 10:50
Default
  #3
Senior Member
 
Holger Marschall
Join Date: Mar 2009
Location: Darmstadt, Germany
Posts: 125
Rep Power: 19
holger_marschall is on a distinguished road
Send a message via Skype™ to holger_marschall
Hi lordvon,

hehe, when have you had this correspondance?

You might be generally better off with OpenFOAM-ext when dealing with dynamic mesh handling... Please have a look:
Have a closer look into the tutorial cases of the icoDyMFoam solver: mixer2D and mixerGGI. Further this case is useful, which is a simple extrusion to 3d.

best,
__________________
Holger Marschall
web: http://www.holger-marschall.info
mail: holgermarschall@yahoo.de
holger_marschall is offline   Reply With Quote

Old   September 6, 2010, 11:37
Default
  #4
Senior Member
 
Robert
Join Date: Sep 2010
Posts: 158
Rep Power: 15
lordvon is on a distinguished road
@Holger: The reply I reproduced was written not two weeks ago.

Thanks guys for all the help.
lordvon is offline   Reply With Quote

Old   September 6, 2010, 13:19
Default
  #5
Senior Member
 
Holger Marschall
Join Date: Mar 2009
Location: Darmstadt, Germany
Posts: 125
Rep Power: 19
holger_marschall is on a distinguished road
Send a message via Skype™ to holger_marschall
Quote:
Originally Posted by lordvon View Post
@Holger: The reply I reproduced was written not two weeks ago.
as the 3d-case for instance is from 2006 I was just wondering...

Anyway, thanks for notifying. Let us know in case you have any problems with the installation and/or case set-up...

best regards,
__________________
Holger Marschall
web: http://www.holger-marschall.info
mail: holgermarschall@yahoo.de
holger_marschall is offline   Reply With Quote

Old   September 6, 2010, 18:04
Default
  #6
Senior Member
 
Robert
Join Date: Sep 2010
Posts: 158
Rep Power: 15
lordvon is on a distinguished road
Hey guys,

Can one say generally whether MRF or sliding interface is more accurate when applied to a 2D rotor-stator simulation? If the computation times are similar within about one order of magnitude then that's something I don't care about. I have the impression that the sliding interface is more accurate. And what about GGI? Is it in a usable state for 2D rotor-stator interaction in 1.5-dev?

Last edited by lordvon; September 6, 2010 at 18:20.
lordvon is offline   Reply With Quote

Old   September 6, 2010, 18:05
Default
  #7
Senior Member
 
Robert
Join Date: Sep 2010
Posts: 158
Rep Power: 15
lordvon is on a distinguished road
Also, the majority of documentation seems to be for 1.4.1-dev. Should I avoid 1.5-dev? Has 1.5-dev solved the problem of not being able to do sliding interface in parallel?

Last edited by lordvon; September 6, 2010 at 18:25.
lordvon is offline   Reply With Quote

Old   September 6, 2010, 18:49
Default
  #8
Senior Member
 
Martin Beaudoin
Join Date: Mar 2009
Posts: 332
Rep Power: 22
mbeaudoin will become famous soon enough
Hello Lordvon,

For more information and some very good tutorials on rotor-stator interfaces with OpenFOAM:
http://openfoamwiki.net/index.php/Sig_Turbomachinery
http://openfoamwiki.net/index.php/Si...ion_test_cases

In order to discover what other people are working on and contributing to the large and growing OpenFOAM community, quite often for free, just surf over the OpenFOAM Workshop website, and take a look at the various presentations available there:

http://www.openfoamworkshop.org/2010...itle=Main_Page
http://www.openfoamworkshop.org/2009...itle=Main_Page
http://www.openfoamworkshop.org/08/i...itle=Main_Page
http://www.openfoamworkshop.org/2007/index.php
http://powerlab.fsb.hr/ped/kturbo/FsbOpenFOAMWorkshop/

As for rotor-stator interfaces, a large part of the necessary source code is already available since 2008 under a very free, very dynamic and very open version of OpenFOAM called openfoam-dev available through the openfoam-extend project on SourceForge.NET. Just Google this information, this is quite easy to find

And yes, the GGI from 1.5-dev is in a very usable state. It also works in parallel.

A mixing plane interface is also in development and testing, and will be made available as soon as ready.

Please disseminate this information to all your friends and Email contacts interested in OpenFOAM. As you can see, not everybody seems to be aware of the growing body of work from a very serious and dynamic community of researchers and developers working with OpenFOAM, and not just in the field of rotor/stator interfaces.

This way, you will serve a great service to some people that migh not be up-to-date with many of the emerging developments for OpenFOAM for the past 2 years, and maybe an even greater service to some other OpenFOAM newcomers that will not longer be offered to finance the reinvention the wheel at their own expense.

Regards,

Martin
mbeaudoin is offline   Reply With Quote

Old   September 7, 2010, 00:40
Default
  #9
Senior Member
 
Robert
Join Date: Sep 2010
Posts: 158
Rep Power: 15
lordvon is on a distinguished road
Hi guys,

I am in the process of installing 1.5-dev, and I am not sure what to do for the compiling step (Basically step 5 in Elvis's post above). I have retrieved the 1.5-dev (r1823) files via svn. I am running Ubuntu 10.04. Please help.

NOTE: For people who might be going through the same problem, right now I am going through one possible solution: http://www.tfd.chalmers.se/~hani/kur...OwnLaptop.html; but I cannot see if it works right now because my tiny Ubuntu partition has run out of space.

Last edited by lordvon; September 7, 2010 at 17:17.
lordvon is offline   Reply With Quote

Old   September 7, 2010, 18:44
Default
  #10
Senior Member
 
Robert
Join Date: Sep 2010
Posts: 158
Rep Power: 15
lordvon is on a distinguished road
Hi guys,

Well, I got to the last step in the directions I posted in my last post. It's a testing step. blockMesh didn't work.

I got a less-than-ceremonious ending when compiling (no 'done' or anything, but no flamboyant error message either). So I think the compilation was incomplete. Although the compilation process goes on for a long time, I see a whole lot of 'not found', 'error (number)', and unused variable messages.

I followed exactly how it was laid out in the link I posted above.

What do you guys think?

Last edited by lordvon; September 7, 2010 at 19:34.
lordvon is offline   Reply With Quote

Old   September 7, 2010, 19:47
Default
  #11
Senior Member
 
Robert
Join Date: Sep 2010
Posts: 158
Rep Power: 15
lordvon is on a distinguished road
Finally! I see lots of .o files in the terminal (didn't before), so it is actually compiling this time. All I did was install OF1.7.1 (and blocked out the OF1.7.1-specific addition to the bashrc file), then try compiling 1.5-dev again. Don't know why that worked. I will post again when I do a test case.

Received another error after a few hours of compiling, but referenced this post http://www.cfd-online.com/Forums/ope...tu-9-04-a.html and changed the settings.sh file (line 161 -- change openmpi version to 1.3.3, instead of 1.2.6) in OpenFOAM-1.5-dev/etc/ and downloaded openmpi-1.3.3 from http://www.open-mpi.org/software/ompi/v1.3/ and put it in the ThirdParty folder I extracted from the link I posted earlier: http://www.tfd.chalmers.se/~hani/kur...OwnLaptop.html .

The compilation appears to have been successful.

I have attached the log files. Are they supposed to be a little different at the end (has the compiling really gone to completion?), and what does the (+ [ = doc ]) mean? I used two slightly different compile commands: 'cd applications && ./Allwmake' and './Allwmake 2>&1'
Attached Files
File Type: txt of15devlog.txt (48.9 KB, 12 views)
File Type: txt of15devlog2.txt (37.9 KB, 2 views)
File Type: txt log_1.txt (38.6 KB, 1 views)
File Type: txt log_2.txt (48.9 KB, 1 views)

Last edited by lordvon; September 8, 2010 at 00:52.
lordvon is offline   Reply With Quote

Old   September 8, 2010, 01:14
Default
  #12
Senior Member
 
Robert
Join Date: Sep 2010
Posts: 158
Rep Power: 15
lordvon is on a distinguished road
For some strange reason I cannot copy files:

command: ~/OpenFOAM/OpenFOAM-1.5-dev$ cp -r $FOAM_TUTORIALS/icoFoam/cavity $FOAM_RUN
cp: cannot create regular file `/home/lordvon/OpenFOAM/lordvon-1.5-dev/run/cavity/.svn/all-wcprops': Permission denied
cp: cannot create regular file `/home/lordvon/OpenFOAM/lordvon-1.5-dev/run/cavity/.svn/dir-prop-base': Permission denied
cp: cannot create regular file `/home/lordvon/OpenFOAM/lordvon-1.5-dev/run/cavity/.svn/entries': Permission denied
....
etc etc.

I didnt have this problem before proper compilation...


...And the tutorials don't work.
(for cavity)
blockMesh
blockMesh: error while loading shared libraries: libPstream.so: cannot open shared object file: No such file or directory

Please help!


I searched for the term 'libpstream' in the log files, shows up in of15devlog and log_2 at lines 47 and 53 for both. No error messages. Does not show up at all in the other two logs. These logs were made within minutes of each other. If it is important to know which compiling command was used for each log, I can recreate the logs.

Also searching for 'warning' or 'error' does not return anything indicating compilation errors.

Last edited by lordvon; September 8, 2010 at 10:40.
lordvon is offline   Reply With Quote

Old   September 8, 2010, 10:47
Default
  #13
Senior Member
 
Robert
Join Date: Sep 2010
Posts: 158
Rep Power: 15
lordvon is on a distinguished road
Ok, my computer has been off for a while (so I restarted it), and I changed the openmpi version in OpenFOAM-1.5-dev/src/settings.sh back to 1.2.6, recompiled, tried blockMesh, icoFoam, paraFoam, and, my god, it worked. Finally. Thanks guys for all your help.

Last edited by lordvon; September 8, 2010 at 11:06.
lordvon is offline   Reply With Quote

Old   September 11, 2010, 23:59
Default
  #14
Senior Member
 
Robert
Join Date: Sep 2010
Posts: 158
Rep Power: 15
lordvon is on a distinguished road
Hi everyone,

I had to do another install on another computer and this time it took me literally less than ten minutes, maybe even less than five.

I was running Ubuntu 10.04.

1) First get svn:
sudo apt-get install subversion libapache2-svn
(from: https://help.ubuntu.com/8.04/serverg...ubversion.html )

2) Next get the of15dev files:
svn co https://openfoam-extend.svn.sourcefo...nFOAM-1.5-dev/
(As Elvis posted above)

3) Follow these few instructions:
http://openfoamwiki.net/index.php/In...ucid_10.04_LTS
(You can access the bashrc file by typing in the terminal: 'gedit ~/.bashrc')

4) And you are done. Enter startOF15dev, put some tutorials in your OpenFOAM/(your ubuntu username here)-1.5-dev/run/ (I had to create the run folder, it wasn't automatically there), and try it out. I tested icoFoam cavity and icoDyMFoam mixerGgi. To run mixerGgi, use './Allrun' to set it up; you can then just enter paraFoam to bring up all of the results.

And actually, steps 1 and 2 may be redundant; it may already be covered by step 3. As you can probably tell, I am pretty much groping around blindly here, but it worked without a hitch for me. My first install (I did not do it this way) took me a day or so.
lordvon is offline   Reply With Quote

Old   September 13, 2010, 06:44
Default
  #15
Senior Member
 
Elvis
Join Date: Mar 2009
Location: Sindelfingen, Germany
Posts: 620
Blog Entries: 6
Rep Power: 24
elvis will become famous soon enough
Hello lordvon,

well done! I appriciate your devotion to make OpenFOAM work.
For those that want a quick start
=> There is CAELinux 2010 LiveDVD
http://caelinux.com/CMS/index.php?op...d=49&Itemid=40
this is for those that want to work with OF1.7.x

OF1.5-dev users might want to try
http://www.cfd-online.com/Forums/ope...d-kubuntu.html

http://sourceforge.net/projects/open...u.iso/download

Oliver Borm also made some Ubuntu-DEB for Debian based Distributions
so update your apt source.list
https://launchpad.net/%7Ecae-team/+a...s_filter=lucid
elvis is offline   Reply With Quote

Old   December 23, 2010, 00:24
Default
  #16
Senior Member
 
Jie
Join Date: Jan 2010
Location: Australia
Posts: 134
Rep Power: 16
jiejie is on a distinguished road
Quote:
Originally Posted by holger_marschall View Post

Have a closer look into the tutorial cases of the icoDyMFoam solver: mixer2D and mixerGGI. Further this case is useful, which is a simple extrusion to 3d.

best,
I just started looking into using ggi.

Sorry to ask a stupid question. What is the main difference between mixer2D and mixerGgi?

I know that mixerGgi use the ggi interface, what about mixer2D?

Thanks a lot
jiejie is offline   Reply With Quote

Old   December 24, 2010, 01:48
Default
  #17
Senior Member
 
Jie
Join Date: Jan 2010
Location: Australia
Posts: 134
Rep Power: 16
jiejie is on a distinguished road
The continuity error was fixed by reducing the gap between insideSlider and outsideSlider.

Last edited by jiejie; January 5, 2011 at 02:00.
jiejie is offline   Reply With Quote

Old   January 3, 2011, 18:03
Default
  #18
Senior Member
 
Jie
Join Date: Jan 2010
Location: Australia
Posts: 134
Rep Power: 16
jiejie is on a distinguished road
The continuity error was fixed by reducing the gap between insideSlider and outsideSlider.

Last edited by jiejie; January 3, 2011 at 23:38.
jiejie is offline   Reply With Quote

Old   January 5, 2011, 02:04
Default
  #19
Senior Member
 
Jie
Join Date: Jan 2010
Location: Australia
Posts: 134
Rep Power: 16
jiejie is on a distinguished road
If I want to extend the 2d mixer ggi case to 3d case (extrude) in the z-direction. How should I set the boundary condition for the top and bottom patches - "frontAndBackPlanes" in 2d case (e.g. wall or movingWallVelocity)? or should I set the part in the "insideSlider" as movingWallVelocity and the part in the "outsideSlider" as wall?

Thanks a lot
jiejie is offline   Reply With Quote

Old   January 7, 2011, 17:32
Default
  #20
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,905
Rep Power: 33
hjasak will become famous soon enough
This is absolutely brilliant - thank you lordvon. Shame on me for not reading the forum.

I have had a feeling for a long time something like this is going on at OpenCFD: the features already implemented (at least one by me) are offered as:

" This functionality is not yet part of OpenFOAM but we have a
detailed plan to implement it and are looking for sponsors; would you be
interested in sponsoring this work?"

For the record, you can have the sliding interface and all other topo change + dynamic mesh code in 1.6-ext without charge, tested and working properly and with tutorials.

Thank you, it is wonderful to know what is going on... I have also heard that Icon are looking for people to work on GGI to put it into "their version" of the code and sell this to their customers. My solicitor (and Mark Olesen, no doubt) will be de-ligted by a wonderful written proof!

Hrv
__________________
Hrvoje Jasak
Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk
hjasak 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
Wind turbine simulation Saturn CFX 58 July 3, 2020 01:13
RPM in Wind Turbine Pankaj CFX 9 November 23, 2009 04:05
Native OpenFOAM interface in Pointwise Chris Sideroff Main CFD Forum 0 January 16, 2009 12:37
[blockMesh] BlockMeshmergePatchPairs hjasak OpenFOAM Meshing & Mesh Conversion 11 August 15, 2008 07:36
Replace periodic by inlet-outlet pair lego CFX 3 November 5, 2002 20:09


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