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   January 28, 2015, 13:55
Default
  #381
Member
 
Join Date: Sep 2012
Posts: 51
Rep Power: 14
Hiroshiman is on a distinguished road
Quote:
Originally Posted by cliff View Post
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
I believe you're not in the good directory.
Hiroshiman is offline   Reply With Quote

Old   January 28, 2015, 14:02
Default viscoelasticfluidfoam
  #382
Member
 
mojtaba
Join Date: Dec 2014
Location: iran
Posts: 41
Rep Power: 11
cliff is on a distinguished road
Would you help me Hiroshiman casue im new on OpenFoam
cliff is offline   Reply With Quote

Old   January 28, 2015, 14:27
Default
  #383
Member
 
Join Date: Sep 2012
Posts: 51
Rep Power: 14
Hiroshiman is on a distinguished road
Quote:
Originally Posted by cliff View Post
Would you help me Hiroshiman casue im new on OpenFoam
Here is all you need to start:
http://www.openfoam.org/docs/user/
Hiroshiman is offline   Reply With Quote

Old   February 2, 2015, 14:11
Default viscoelastic extension
  #384
Member
 
mojtaba
Join Date: Dec 2014
Location: iran
Posts: 41
Rep Power: 11
cliff is on a distinguished road
Hi foamers. i want to simulate a viscoelastic fluid flow but i dont know which extension is appropriate for this 1.6ext or 3.1. i could not find any instruction for 1.6 on ubuntu 14.04. can anyone help me?
cliff is offline   Reply With Quote

Old   February 2, 2015, 16:33
Default
  #385
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
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 cliff View Post
Hi foamers. i want to simulate a viscoelastic fluid flow but i dont know which extension is appropriate for this 1.6ext or 3.1. i could not find any instruction for 1.6 on ubuntu 14.04. can anyone help me?
Quick answer: Install foam-extend 3.1, which is the latest version. Instructions available here: http://openfoamwiki.net/index.php/In...oam-extend-3.1
wyldckat is offline   Reply With Quote

Old   February 3, 2015, 06:49
Default viscoelastic extension
  #386
Member
 
mojtaba
Join Date: Dec 2014
Location: iran
Posts: 41
Rep Power: 11
cliff is on a distinguished road
Thank you so much Bruno and Hirosiman
cliff is offline   Reply With Quote

Old   February 12, 2015, 14:39
Default viscoelasticfluidfoam
  #387
Member
 
mojtaba
Join Date: Dec 2014
Location: iran
Posts: 41
Rep Power: 11
cliff is on a distinguished road
Hi Foamers.
Me again. i've already installed foam-extend 3.1 and viscoelastic tutorials run well. but when i change the geometry and update the boundaries of u,p,tau and phi with my new geometry this error shows up: "--> FOAM FATAL IO ERROR:
keyword bottom_wall is undefined in dictionary "/home/sepinood/foam/foam-extend-3.1/tutorials/viscoelastic/viscoelasticFluidFoam/Leonov_2/0/p::boundaryField"

file: /home/sepinood/foam/foam-extend-3.1/tutorials/viscoelastic/viscoelasticFluidFoam/Leonov_2/0/p::boundaryField from line 25 to line 45.
"
Note that i generated the geometry and mesh with Gambit and imported in tutorial case with fluentMeshToFoam command.
These are my boundary and P file.
p

dimensions [0 2 -2 0 0 0 0];

internalField uniform 0;

boundaryField
{
cylinder
{
type zeroGradient;
}
top_wall
{
type zeroGradient;
bottom_wall
{
type zeroGradient;
}
outlet
{
type fixedValue;
value uniform 0;
}
inlet
{
type zeroGradient;
}
frontAndBack
{
type empty;
}
}




boundary
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | foam-extend: Open Source CFD |
| \\ / O peration | Version: 3.1 |
| \\ / A nd | Web: http://www.extend-project.de |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class polyBoundaryMesh;
location "constant/polyMesh";
object boundary;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

6
(
cylinder
{
type wall;
nFaces 46;
startFace 7609;
}
top_wall
{
type wall;
nFaces 45;
startFace 7655;
}
bottom_wall
{
type wall;
nFaces 45;
startFace 7700;
}
outlet
{
type wall;
nFaces 45;
startFace 7745;
}
inlet
{
type wall;
nFaces 45;
startFace 7790;
}
frontAndBackPlanes
{
type empty;
nFaces 7722;
startFace 7835;
}
)
cliff is offline   Reply With Quote

Old   February 12, 2015, 15:31
Default
  #388
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
dear mojtaba,

you didn't close the bracket in top_wall boundary:

Code:
p

dimensions [0 2 -2 0 0 0 0];

internalField uniform 0;

boundaryField
{
cylinder
{
type zeroGradient;
}
top_wall
{
type zeroGradient;
}
bottom_wall
{
type zeroGradient;
}
outlet
{
type fixedValue;
value uniform 0;
}
inlet
{
type zeroGradient;
}
frontAndBack
{
type empty;
}
}
adambarfi is offline   Reply With Quote

Old   February 12, 2015, 16:51
Default
  #389
Member
 
mojtaba
Join Date: Dec 2014
Location: iran
Posts: 41
Rep Power: 11
cliff is on a distinguished road
Quote:
Originally Posted by adambarfi View Post
dear mojtaba,

you didn't close the bracket in top_wall boundary:

Code:
p

dimensions [0 2 -2 0 0 0 0];

internalField uniform 0;

boundaryField
{
cylinder
{
type zeroGradient;
}
top_wall
{
type zeroGradient;
}
bottom_wall
{
type zeroGradient;
}
outlet
{
type fixedValue;
value uniform 0;
}
inlet
{
type zeroGradient;
}
frontAndBack
{
type empty;
}
}
Thank you Snowman .
cliff is offline   Reply With Quote

Old   February 13, 2015, 12:03
Default
  #390
Member
 
mojtaba
Join Date: Dec 2014
Location: iran
Posts: 41
Rep Power: 11
cliff is on a distinguished road
Hi dear foamers. I've simulated a viscoelastic fluid with leonov model in a sudden expansion geometry in OF but i am not sure about the final results. I just want to know if there is any source to validate my data. and if any of you foamers have encountered with this problem or maybe solved it, i really want to know how. note that i'm using OF231 and foam-extend 3.1. these are my final results:


p.jpg

sigma.jpg

u.jpg

tau.jpg
cliff is offline   Reply With Quote

Old   February 14, 2015, 06:12
Default
  #391
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
Are you sure your solution is converged? it seems that there are some problems in convergence. what are the boundary conditions?
adambarfi is offline   Reply With Quote

Old   February 15, 2015, 05:12
Default
  #392
Member
 
mojtaba
Join Date: Dec 2014
Location: iran
Posts: 41
Rep Power: 11
cliff is on a distinguished road
Quote:
Originally Posted by adambarfi View Post
Are you sure your solution is converged? it seems that there are some problems in convergence. what are the boundary conditions?
Hi Mostafa. I'm new at openfoam and don't know much about convergence. Could you please explain more?
so these are my boundaries for P and U.
P
dimensions [0 2 -2 0 0 0 0];

internalField uniform 0;

boundaryField
{
inlet
{
type zeroGradient;
}
bottom
{
type zeroGradient;
}
top
{
type zeroGradient;
}
bottexp
{
type zeroGradient;
}
topexp
{
type zeroGradient;
}
top2
{
type zeroGradient;
}
bottom2
{
type zeroGradient;
}
outlet
{
type fixedValue;
value uniform 0;
}
frontAndBack
{
type empty;
}
}



U

dimensions [0 1 -1 0 0 0 0];

internalField uniform (0 0 0);

boundaryField
{
inlet
{
type fixedValue;
value uniform (0.03875 0 0);
}
bottom
{
type zeroGradient;
}
top
{
type zeroGradient;
}
bottexp
{
type zeroGradient;
}
topexp
{
type zeroGradient;
}
top2
{
type zeroGradient;
}
bottom2
{
type zeroGradient;
}
outlet
{
type zeroGradient;
}
frontAndBack
{
type empty;
}
}
cliff is offline   Reply With Quote

Old   February 16, 2015, 06:39
Default
  #393
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
Dear Mojtaba,

Why did you use zero gradient velocity condition on your walls? can you tell me clearly what are u modeling?

you can plot the residuals or you can save them in a log file and then see how the residuals change and if your solution is going to converge or not. you should specify a convergence criterion in fvSolution file.

for plotting residuals see the below link;
http://www.cfd-online.com/Forums/ope...tml#post238091

Regards,
Mostafa
adambarfi is offline   Reply With Quote

Old   February 16, 2015, 08:21
Default
  #394
Member
 
mojtaba
Join Date: Dec 2014
Location: iran
Posts: 41
Rep Power: 11
cliff is on a distinguished road
Quote:
Originally Posted by adambarfi View Post
Dear Mojtaba,

Why did you use zero gradient velocity condition on your walls? can you tell me clearly what are u modeling?

you can plot the residuals or you can save them in a log file and then see how the residuals change and if your solution is going to converge or not. you should specify a convergence criterion in fvSolution file.

for plotting residuals see the below link;
http://www.cfd-online.com/Forums/ope...tml#post238091

Regards,
Mostafa
Hi Mostafa and thank you for your help. I just want to simulate a viscoelastic fluid flow with Leonov or any other models in a sudden expansion geometry with the ratio of 1:3 and observe the resulting vortexes, but unfortunately don't know much about boundary conditions and convergence. could you please tell me in details what am i missing in boundary conditions or what type of boundaries should i use?
Thanks
cliff is offline   Reply With Quote

Old   February 16, 2015, 09:20
Default
  #395
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 cliff View Post
Hi Mostafa and thank you for your help. I just want to simulate a viscoelastic fluid flow with Leonov or any other models in a sudden expansion geometry with the ratio of 1:3 and observe the resulting vortexes, but unfortunately don't know much about boundary conditions and convergence. could you please tell me in details what am i missing in boundary conditions or what type of boundaries should i use?
Thanks
Dear Mojtaba,

If you have a non-slip boundary conditions on your walls so you should specify a zero velocity at each wall. for example:

Code:
boundaryField
{
    floor
    {
        type            fixedValue;
        value           uniform (0 0 0);
    }
.
.
.
and it is supposed to read more papers about the subject and then start simulating with enough information.

Regards,
Mostafa
adambarfi is offline   Reply With Quote

Old   May 3, 2016, 14:00
Default
  #396
New Member
 
Vitor Dal Bó Abella
Join Date: May 2016
Posts: 6
Rep Power: 10
2vdba2 is on a distinguished road
Does anyone know how to install viscoelasticfluidfoam on the latest openfoam 3.01??
2vdba2 is offline   Reply With Quote

Old   May 4, 2016, 06:57
Default
  #397
Senior Member
 
Sita Drost
Join Date: Mar 2009
Location: Arnhem, The Netherlands
Posts: 227
Rep Power: 18
sita is on a distinguished road
Hi,

I haven't used viscoelasticFluidFoam in a while, but as far as I'm aware, it's part of the OpenFOAM-Extend project: http://www.extend-project.de
So if you install OpenFOAM-Extend (instead of, or next to OpenFOAM), viscoelasticFluidFoam should automatically be installed as part of that.

Good luck,
Sita
sita is offline   Reply With Quote

Old   May 11, 2016, 04:48
Default VOF simulation in viscoelastic fluid foam?
  #398
New Member
 
mehdi
Join Date: Nov 2010
Location: Tehran
Posts: 16
Rep Power: 16
mehdi kamyabi is on a distinguished road
Hi Foamers,
I was a user of viscoelasticfluidfoam about 3 years ago but recently have no experience with openfoam. my question is how can I implement a two-phase VOF simulation with Openfoam? is there any released solver which can do it without many difficulties? in addition do anybody know about the existence of this ability in any other softwares like polyflow?
Thanks.
mehdi kamyabi is offline   Reply With Quote

Old   June 13, 2016, 07:47
Default
  #399
New Member
 
ahmed
Join Date: Jun 2016
Location: Turkey
Posts: 2
Rep Power: 0
alqayssi69 is on a distinguished road
hello Jovani.
Thank you very much Jovani . these information very helpful . please can you help me in fitting experimental data of flow curve for polymeric melt.

Regard
alqayssi69 is offline   Reply With Quote

Old   June 13, 2016, 17:46
Default Divergens problem with shear thinning
  #400
New Member
 
Join Date: Dec 2015
Posts: 2
Rep Power: 0
Julya_Shmit is on a distinguished road
Hello foamers !

I need your help.
I am trying to implement a pressure driven 2D flow in channel with Giesekus model.
Geometry, model's parameters and boundary conditions in Geometry.png.

My analytical solutions give a great shear thinning (very big shear rate) near boundary/fixedWalls but I cann't achieve this results in OpenFOAM. To be more exact a velocity profile begins to become a desirable form with big shear rate near fixedWalls (velocity.pdf) BUT the solution diverges. And I cann't reach a quantitative accordance. The residual graphic is in Residual.pdf

The question is 1) why the problem diverges; 2) how can I avoid it?

May be somebody can give me the cue.... I will be happy
Attached Images
File Type: jpg Geometry.jpg (80.4 KB, 26 views)
Attached Files
File Type: pdf Residual.pdf (100.3 KB, 20 views)
File Type: pdf velocity.pdf (15.8 KB, 21 views)
Julya_Shmit 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:52.