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

Viscoelastic Fluid Flows using OpenFOAM The solver viscoelasticFluidFoam

Register Blogs Community New Posts Updated Threads Search

Like Tree44Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 31, 2014, 08:18
Default
  #361
Senior Member
 
Sita Drost
Join Date: Mar 2009
Location: Arnhem, The Netherlands
Posts: 227
Rep Power: 18
sita is on a distinguished road
Quote:
Originally Posted by ron_OFuser View Post
Thank you Sita for the same.

Do you know how would I implement the drag coefficient equation for these fluids in OpenFOAM?

You mean you want OpenFOAM to calculate the drag coefficient, as part of a simulation? You can use functionObjects for things like that, for example forceCoeffs might be a good one to start out with. You can find tutorials on how to use functionObjects on the internet, for example, this is one where they compute lift and drag coefficients on an airfoil.

It might be not completely straightforward to implement function objects for viscoelasticFluidFoam, though, as many of these function objects assume your case contains a transportProperties file, values of phi in each time directory, etc., which viscoelasticFluidFoam doesn't. Fixing this might require quite some work, I don't know, never tried.

Good luck,
Sita
sita is offline   Reply With Quote

Old   August 9, 2014, 17:01
Default A problem with modal analysis
  #362
New Member
 
farahani
Join Date: Aug 2014
Posts: 4
Rep Power: 12
ftmh is on a distinguished road
Hi everyone
I try to model a tank with water in but in solution part it has the below error.
can you help me?


"Water Liquid contains invalid property data.
These problems are:
Elasticity is required, but is currently undefined.

Please switch to Engineering Data and correct the invalid property data"
ftmh is offline   Reply With Quote

Old   August 29, 2014, 09:42
Question pressure solver
  #363
Member
 
Join Date: Feb 2012
Posts: 59
Rep Power: 14
Raymond.Leoi is on a distinguished road
Hi all,

When the PCG solver is used for p, it took very long time to get converged for a viscoelastic flow. Any idea for speeding up the convergence?

Cheers.
Raymond
Raymond.Leoi is offline   Reply With Quote

Old   August 29, 2014, 09:44
Default
  #364
Senior Member
 
Dr. Alexander Vakhrushev
Join Date: Mar 2009
Posts: 256
Blog Entries: 1
Rep Power: 19
makaveli_lcf is on a distinguished road
Send a message via ICQ to makaveli_lcf
Hi Raymond. did you try GAMG solver?

Cheers,
Alexander
__________________
Best regards,

Dr. Alexander VAKHRUSHEV

Christian Doppler Laboratory for "Metallurgical Applications of Magnetohydrodynamics"

Simulation and Modelling of Metallurgical Processes
Department of Metallurgy
University of Leoben

http://smmp.unileoben.ac.at
makaveli_lcf is offline   Reply With Quote

Old   August 29, 2014, 09:54
Default
  #365
Member
 
Join Date: Feb 2012
Posts: 59
Rep Power: 14
Raymond.Leoi is on a distinguished road
Thanks, Alexander. I did try it as well as smoothSolver and none of them works.

Quote:
Originally Posted by makaveli_lcf View Post
Hi Raymond. did you try GAMG solver?

Cheers,
Alexander
Raymond.Leoi is offline   Reply With Quote

Old   September 29, 2014, 22:41
Default
  #366
New Member
 
Alexa
Join Date: Sep 2014
Posts: 5
Rep Power: 12
AlexaB is on a distinguished road
hi everybody!

I'm stuck in a quite basic problem and I kindly would like to ask your help...

I'm very new at Ubuntu and openfoam. I'm trying to discover how to install the solver viscoelasticFluidFoam in OpenFOAM 2.1.1 but I don't know what to do with the .tgz file.

Can someone please help me and describe me what steps should I take to install it?

I would be very grateful for your attention!!
AlexaB is offline   Reply With Quote

Old   September 30, 2014, 10:19
Default
  #367
New Member
 
Alexa
Join Date: Sep 2014
Posts: 5
Rep Power: 12
AlexaB is on a distinguished road
Anybody, please?
AlexaB is offline   Reply With Quote

Old   December 17, 2014, 18:05
Default zero or small solvent viscosity
  #368
Member
 
ali jafari
Join Date: Sep 2012
Posts: 50
Rep Power: 14
ali jafari is on a distinguished road
hi

I try to solve some problems by gisekus and oldroyd-b with negligible and zero solvent viscosity. viscoelasticfluidfoam can not do it. when I increase solvent viscosity it converges.
do I modify code (transport model) ? any suggestion?

Best regards
ali jafari is offline   Reply With Quote

Old   December 17, 2014, 18:16
Default
  #369
Member
 
Nickolas P
Join Date: Oct 2010
Location: Greece
Posts: 30
Rep Power: 16
NickolasPl is on a distinguished road
Hi Ali,

I had the same problem with these models as with all the rest that had solvent viscosity. A general practise in numerics would be to avoid giving zero values in general, especially when the code is a black box. So better place values as 0.000000001 or something which means zero. I'am not sure if the solvent viscosity in the equations OF solves is in the denominator and by zero goes to infinity and this might be a reason it does not converge.

Nickolas
NickolasPl is offline   Reply With Quote

Old   December 19, 2014, 06:07
Default
  #370
Senior Member
 
Sita Drost
Join Date: Mar 2009
Location: Arnhem, The Netherlands
Posts: 227
Rep Power: 18
sita is on a distinguished road
Hi Alexa,

The .tgz file you have is a compressed archive, you can unpack it by opening a terminal and typing:

tar -zxfv file.tgz

(file.tgz is a dummy name here, you should use the name of your file). tar is a program that can do packing/unpacking in Linux, -z means uncompress, x = extract, f means that tar should use the specified file name, and v stands for verbose, meaning that the program will inform you about its progress.

Further instructions for the installation of OpenFOAM can be found on the OpenFOAM-Wiki: http://openfoamwiki.net/index.php/Installation

Also Google can be extremely useful to find information on both (Ubuntu) Linux and OpenFOAM.

Good luck,
Sita

Quote:
Originally Posted by AlexaB View Post
Anybody, please?
sita is offline   Reply With Quote

Old   December 19, 2014, 06:15
Default
  #371
Senior Member
 
Sita Drost
Join Date: Mar 2009
Location: Arnhem, The Netherlands
Posts: 227
Rep Power: 18
sita is on a distinguished road
Hi Ali,

If you want to solve problems with zero solvent viscosity (i.e. modelling a polymer melt), you'd better use a model that is specifically meant for that. The melt equivalent of Oldroyd-B is the Upper Convected Maxwell model. Other, more sophisticated melt models in viscoelasticFluidFoam are the Pom-Pom-type models, like DCPP.

Good luck,
Sita


Quote:
Originally Posted by ali jafari View Post
hi

I try to solve some problems by gisekus and oldroyd-b with negligible and zero solvent viscosity. viscoelasticfluidfoam can not do it. when I increase solvent viscosity it converges.
do I modify code (transport model) ? any suggestion?

Best regards
sita is offline   Reply With Quote

Old   December 20, 2014, 08:19
Default
  #372
Member
 
Anil Kunwar
Join Date: Jun 2013
Posts: 64
Rep Power: 12
Annier is an unknown quantity at this point
Hi all,
I am using OpenFOAM 2.3.x in Ubuntu 14.04. I installed it as per the steps described in http://www.tfd.chalmers.se/~hani/kur...OwnLaptop.html.
Is viscoelasticFluidFoam a solver that is similar like other solvers such as nonNewtonianIcoFoam? Where is this viscoelasticFluidFoam library located inside the OpenFOAM?
In simple, i would request you to clarify the morphology(structure) of viscoelasticFluidFoam and its location.
For an example:
the location of nonNewtonianIcoFoam solver is
OpenFOAM/OpenFOAM2.3.x/applications/solvers/incompressible/
What would this be in context of viscoelasticFluidFoam?



Thanking you.

Yours
Anil Kunwar

Last edited by Annier; December 30, 2014 at 12:11.
Annier is offline   Reply With Quote

Old   December 21, 2014, 01:02
Default
  #373
Member
 
Ron
Join Date: Jul 2014
Location: Japan
Posts: 40
Rep Power: 12
ron_OFuser is on a distinguished road
ANIL: Why don't you google it ? All the answers are available in many posts/books/files etc. . It is advisable to do thorough search on topic before posting your query.
ron_OFuser is offline   Reply With Quote

Old   December 23, 2014, 12:52
Default
  #374
Senior Member
 
adambarfi's Avatar
 
Mostafa Mahmoudi
Join Date: Jan 2012
Posts: 322
Rep Power: 15
adambarfi is on a distinguished road
Send a message via Yahoo to adambarfi Send a message via Skype™ to adambarfi
Quote:
Originally Posted by Annier View Post
Hi all,
I am using OpenFOAM 2.3.x in Ubuntu 14.04. I installed it as per the steps described in http://www.tfd.chalmers.se/~hani/kurser/OS_CFD/OpenFOAMonYourOwnLaptop.html.
Is viscoelasticFluidFoam a solver that is similar like other solvers such as nonNewtonianIcoFoam? Where is this viscoelasticFluidFoam library located inside the OpenFOAM?
In simple, i would request you to clarify the morphology(structure) of viscoelasticFluidFoam and its location.
For an example:
the location of nonNewtonianIcoFoam solver is
OpenFOAM/OpenFOAM2.3.x/applications/solvers/incompressible/
What would this be in context of viscoelasticFluidFoam?



Thanking you.

Yours
Anil Kunwar
see this post: http://www.cfd-online.com/Forums/ope...tml#post360185

Regards,
Mostafa
Annier likes this.
adambarfi is offline   Reply With Quote

Old   January 19, 2015, 12:11
Default
  #375
Member
 
Join Date: Sep 2012
Posts: 51
Rep Power: 14
Hiroshiman is on a distinguished road
Hi every one,
I'm working on multiphasic flows of viscoelastic fluids. I used the interDyMFoam and viscoelasticFluidFoam from of OE 3.1 to create a interViscoDyMFoam, using the work here.
However, the viscosity from the constant/transportProperties is still used by the twoPhaseMixture operation :
Code:
    
     nuModel1_
     (
    viscosityModel::New
         (
             "nu1",
             subDict(phase1Name_),
             U,
             phi
         )
     ),
     nuModel2_
     ( 
        viscosityModel::New
         ( 
            "nu2",
             subDict(phase2Name_),
             U,
             phi
         )
     ),
How can I replace these values read in a dictionnary by values computed from the flow field ? Or maybe there is a simpler approach..


edit:
actually I'd only need to read the viscoelascticProperties from the twoPhaseMixture files. However, the definitions are quite different from reading from the transportProperties files as usual. How could I, for example, read etap1 from constant/viscoelascticProperties in twoPhaseMixture.C ?


Best regards,
Florian

Last edited by Hiroshiman; January 22, 2015 at 16:10.
Hiroshiman is offline   Reply With Quote

Old   January 27, 2015, 04:17
Unhappy viscoelasticThermalFoam
  #376
New Member
 
arash
Join Date: Jan 2015
Posts: 14
Rep Power: 11
arash.heidarian is on a distinguished road
Hello fomers:
Does anyone have the viscoelasticThermalFoam solver? or any information about it.
thank you.
arash.heidarian is offline   Reply With Quote

Old   January 28, 2015, 11:39
Default viscoelasticfluiffoam
  #377
Member
 
mojtaba
Join Date: Dec 2014
Location: iran
Posts: 41
Rep Power: 11
cliff is on a distinguished road
Hi Foamers. how long does it take to recompile?
cliff is offline   Reply With Quote

Old   January 28, 2015, 11:42
Default
  #378
Member
 
Join Date: Sep 2012
Posts: 51
Rep Power: 14
Hiroshiman is on a distinguished road
Quote:
Originally Posted by cliff View Post
Hi Foamers. how long does it take to recompile?
About 3h on my K6 166. Depending on the presence of solar winds or not of course.
Hiroshiman is offline   Reply With Quote

Old   January 28, 2015, 11:48
Default viscoelasticfluidfoam
  #379
Member
 
mojtaba
Join Date: Dec 2014
Location: iran
Posts: 41
Rep Power: 11
cliff is on a distinguished road
Hi Foamers. i've got a question sandip. How long does it take to recompile?
cliff is offline   Reply With Quote

Old   January 28, 2015, 13:40
Default viscoelasticfluidfoam
  #380
Member
 
mojtaba
Join Date: Dec 2014
Location: iran
Posts: 41
Rep Power: 11
cliff is on a distinguished road
Sorry i posted the same question. as i wanted to run one of viscoelastic tutorial, i came up with this error
/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.3.1 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : 2.3.1-bcfaaa7b8660
Exec : blockMesh
Date : Jan 28 2015
Time : 20:14:15
Host : "sepinood-Inspiron-N5010"
PID : 27458
Case : /opt/openfoam231/tutorials/viscoelastic/viscoelasticFluidFoam/DCPP/constant/polyMesh
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster
allowSystemOperations : Allowing user-supplied system call operations

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



--> FOAM FATAL IO ERROR:
cannot find file

file: /opt/openfoam231/tutorials/viscoelastic/viscoelasticFluidFoam/DCPP/constant/polyMesh/system/controlDict at line 0.

From function regIOobject::readStream()
in file db/regIOobject/regIOobjectRead.C at line 73.

FOAM exiting
i would appreciate your help. thanks
cliff 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
VOF simulation of a viscoelastic fluid sinah OpenFOAM Running, Solving & CFD 11 December 25, 2017 04:00
FREE SURFACE VISCOELASTIC FLOWS Valdemir G. Ferreira Main CFD Forum 6 December 18, 2009 07:14
Viscoelastic flow modeling in OpenFOAM vulda OpenFOAM Running, Solving & CFD 1 March 17, 2008 08:32
Polyflow & OpenFoam on Viscoelastic flow modeling Sumeshen Main CFD Forum 0 March 14, 2008 09:29
Viscoelastic fluid codes joel davison Main CFD Forum 0 November 6, 2001 06:09


All times are GMT -4. The time now is 23:47.