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

MRFSimpleFoam Tutorial

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 28, 2011, 05:52
Default MRFSimpleFoam location
  #41
Member
 
Aldo Iannetti
Join Date: Feb 2010
Posts: 48
Rep Power: 16
aldo.iannetti is on a distinguished road
Hi,
MRFSimpleFoam source code is located in tutorials/incompressible/MRFSimpleFoam just next to mixerVessel tutorial if never done before yuo must compile the source code going in the directory and run wmake.
This means that you already have all you need for your MRF problem.
Your fatal error means that you heave not specified laplacian method of
the pressure in your fvSchemes dictionary, but my advice is to run MRFSimpleFoam and leave potentialFoam.
Hope this helps, (and hope I understood well your problem)
Aldo


Quote:
Originally Posted by MikeyMike View Post
Dear CFD-folks,

I am new with this whole OpenFoam material but I think I might see the opportunities it is holding..

I want to try to get you my problem described:

I am running (intern a university server-system with crunchers etc.) with OpenFoam1.6.x and I am trying to simulate two coaxial cylinders, the inner one rotates within the outer (stator), inbetween of course there is a fluid...

After several researches and trial and errors, I finally catched up on this special thread with all its rotating things

I tried to run a tutorial named mixerVessel2D on potentialFoam, due to not being able to find a solver called MRFSimpleFoam..!

this is what returned:

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Create mesh for time = 0

Reading field p

Reading field U


Calculating potential flow


--> FOAM FATAL IO ERROR:
keyword laplacian(1,p) is undefined in dictionary "/home/itsnas/michael/OpenFOAM/michael-1.6.x/run/mixerVessel2D/system/fvSchemes::laplacianSchemes"

file: /home/itsnas/michael/OpenFOAM/michael-1.6.x/run/mixerVessel2D/system/fvSchemes::laplacianSchemes from line 41 to line 45.

From function dictionary::lookupEntry(const word&, bool, bool) const
in file db/dictionary/dictionary.C at line 396.

FOAM exiting
**************************************

Another way I was hoping to find a solution to my problem was to integrate several scripts into my case files (such as: rotatingBC.dict) or simply to integrate some additions to my velocitiy parameters... To be exact:
--> how can I integrate rotatingBC into my case file system, from where does it have to be accessed / whereto is it linked?? And finally, which solver does it the right way in the end?
Because until now I havenīt been able to understand vital differences among several solvers..!

I was greatful if anybody could push me into the right direction!!

Maybe someday I will be able to do the other way round, at least for newcomers
aldo.iannetti is offline   Reply With Quote

Old   May 28, 2011, 09:09
Default
  #42
New Member
 
Join Date: Apr 2011
Posts: 10
Rep Power: 15
MikeyMike is on a distinguished road
Dear Aldo,

thank you very much for your advice, I hope it works. Some last, tiny obscurities before I may have my first breakthrough with this software ;-)

In directory "tut../incomp../MRFSimp../MRFSimpleFoam" there is a file named "Make"... you said I should compile the MRFSimpleFoam.C code, but I donīt really know what to do exactly (I am able to watch this creepy code, but I donīt know what I should alter..!) what do you mean with "wmake" ??
I am sorry to bother you with such an easy question, but maybe the good thing: it wonīt take you long to explain ;-)

Do I first have to "activate" MRFSimpleFoam on this machine? Because the "command is not found" !!
Is this why the system isnīt able to run with MRFSimpleFoam?? Is it absent or not installed?

Thanks very much in advance, Cheers MikeyMike

Last edited by MikeyMike; May 28, 2011 at 09:38.
MikeyMike is offline   Reply With Quote

Old   May 28, 2011, 09:51
Default more explanations
  #43
Member
 
Aldo Iannetti
Join Date: Feb 2010
Posts: 48
Rep Power: 16
aldo.iannetti is on a distinguished road
I suppose that the cause of your impossibility to run MRFSimpleFoam was the fact that you don't have the MRFSimpleFoam execute in your solvers bin directory (check out in the solvers bin directory a file named MRFSimpleFoam, maybe you won't find it) if it is so open your terminal, go in the directory MRFSimpleFoam (just discussed erlier) and run the command: wmake (you'll have to launch the command in the main directory trom where you can see the make folder, and the MRFSimpleFoam.C source file. It is simplier to do then to explane. After that you will see a MRFSimpleFoam execute file in your user application binary directory. Let me know.
Aldo


Quote:
Originally Posted by MikeyMike View Post
Dear Aldo,

thank you very much for your advice, I hope it works. Some last, tiny obscurities before I may have my first breakthrough with this software ;-)

In directory "tut../incomp../MRFSimp../MRFSimpleFoam" there is a file named "Make"... you said I should compile the MRFSimpleFoam.C code, but I donīt really know what to do exactly (I am able to watch this creepy code, but I donīt know what I should alter..!) what do you mean with "wmake" ??
I am sorry to bother you with such an easy question, but maybe the good thing: it wonīt take you long to explain ;-)

Do I first have to "activate" MRFSimpleFoam on this machine?
Is this why the system wasnīt able to run with MRFSimpleFoam before?? Has it been absent or not installed?

Thanks very much in advance, Cheers MikeyMike
aldo.iannetti is offline   Reply With Quote

Old   June 26, 2011, 05:12
Default mixer2d tut of MRFSimpleFoam
  #44
Member
 
s.rasoul_varedi
Join Date: Feb 2010
Posts: 82
Rep Power: 15
desert_1250 is an unknown quantity at this point
Send a message via Yahoo to desert_1250
Hi foamers
i have a simple question, why the rotor dosent rotate, when i run mixer2d tutorial of MRFSimpleFoam? but when i run this case of icoDymFoam tutorial, the rotor rotates as we expect
can every one guide me where is the problem, tnx
desert_1250 is offline   Reply With Quote

Old   April 6, 2012, 11:00
Default
  #45
Senior Member
 
lore
Join Date: Mar 2010
Location: Italy
Posts: 460
Rep Power: 18
lovecraft22 is on a distinguished road
Send a message via Skype™ to lovecraft22
Maybe it's a little late but… with MRF you are not moving anything of your geometry, you just set a rotating reference frame in some region (ie the fluid around the rotor of a mixer). This way it's almost as the mixer was actually rotating but is not, only the fluid around it is. The simulation is still stationary while it would not be if the geometry was rotating.
lovecraft22 is offline   Reply With Quote

Old   May 2, 2012, 05:11
Default
  #46
Senior Member
 
sivakumar selvaraju
Join Date: Mar 2009
Location: India
Posts: 205
Rep Power: 18
sivakumar is on a distinguished road
Send a message via Skype™ to sivakumar
Hello Guys,
I have a simple question,
I have tried the case in simpleFoam, it is working fine
Now
I am trying to run the same case in MRFSimpleFoam, for this,
1) What are the corrections I need to do, in my files.
2) I have copied my simpleFoam polyMesh folder in to MRFSimpleFoam/ fanTest folder
3) the I have executed blockMesh, while comparing the polyMesh folder with mixerVessle2D, cellZone file is missing.

what should I do? give me your suggestions please

with regards,
Sivakumar
sivakumar is offline   Reply With Quote

Old   May 2, 2012, 15:33
Default
  #47
Senior Member
 
lore
Join Date: Mar 2010
Location: Italy
Posts: 460
Rep Power: 18
lovecraft22 is on a distinguished road
Send a message via Skype™ to lovecraft22
1. You need a MRFZones file and a rotating cells zone
2. see above answer
3. you need a zone for the MRF.
What I usually do is to enclose what I need to "rotate" within a cylindrical surface called cylinder.stl, then in my SHMDict:

Code:
refinementSurfaces
    {
        "some other stuff"
       
        cylinder
        {
            level (n n);
            faceZone        rotating_face;
            cellZone         rotating_cell;
            zoneInside      true;
        }
    }
lovecraft22 is offline   Reply With Quote

Old   June 29, 2012, 08:20
Default
  #48
New Member
 
sai ramana
Join Date: May 2012
Posts: 2
Rep Power: 0
vngrsrmn is on a distinguished road
I am using OpenFoam 1.6.ext. I did exactly what Aldo said to do. Opened the terminal & went to home directory where both MRFsimpleFoam.c & make folder are present. Then run the command: wmake.

After running that command i got some error like this:

g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I/home/vijayalaxmi/OpenFOAM/OpenFOAM-1.6-ext/src/finiteVolume/lnInclude -I/home/vijayalaxmi/OpenFOAM/OpenFOAM-1.6-ext/src/turbulenceModels -I/home/vijayalaxmi/OpenFOAM/OpenFOAM-1.6-ext/src/transportModels -IlnInclude -I. -I/home/vijayalaxmi/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude -I/home/vijayalaxmi/OpenFOAM/OpenFOAM-1.6-ext/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed Make/linux64GccDPOpt/MRFSimpleFoam.o -L/home/vijayalaxmi/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64GccDPOpt \
-lincompressibleRASModels -lincompressibleTransportModels -lfiniteVolume -llduSolvers -lOpenFOAM -liberty -ldl -lm -o /home/vijayalaxmi/OpenFOAM/vijayalaxmi-1.6-ext/applications/bin/linux64GccDPOpt/MRFSimpleFoam
/usr/bin/ld: cannot find -liberty
collect2: ld returned 1 exit status
make: *** [/home/vijayalaxmi/OpenFOAM/vijayalaxmi-1.6-ext/applications/bin/linux64GccDPOpt/MRFSimpleFoam] Error 1


please anyone can help me on this issue. Thanx in advance.
vngrsrmn is offline   Reply With Quote

Old   August 1, 2012, 11:00
Default howToGet cellZone
  #49
Senior Member
 
sivakumar selvaraju
Join Date: Mar 2009
Location: India
Posts: 205
Rep Power: 18
sivakumar is on a distinguished road
Send a message via Skype™ to sivakumar
Hi guys,
I got the solution for MRFSimpleFoam to get cellZone and sets and other files, the thing is we need to define, what are the parts going to rotate in the blockMeshDict subsection blocks.
my case is running now, but I am getting time step continuity error,

anybody has idea about it?

thanks,
Sivakumar
sivakumar 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
CellZons and MRFSimpleFoam vinz OpenFOAM Running, Solving & CFD 19 December 1, 2016 16:18
Equations in the MRFsimpleFOAM waynezw0618 OpenFOAM Running, Solving & CFD 5 May 7, 2015 05:43
Convergence with MRFSimpleFoam grugg OpenFOAM Running, Solving & CFD 7 March 28, 2014 05:56
MRFSimpleFoam PropellerMixer tino_boelke OpenFOAM Running, Solving & CFD 0 December 17, 2008 11:25
MRFSimpleFoam xdanielx OpenFOAM Running, Solving & CFD 0 December 17, 2008 02:28


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