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 Tree43Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 6, 2012, 16:02
Default viscoelasticFluidFoam for OpenFOAM-2.1.x
  #181
Member
 
Jovani L. Favero
Join Date: Mar 2009
Location: Rio de Janeiro, RJ, Brazil
Posts: 45
Rep Power: 18
jovani is on a distinguished road
Send a message via Skype™ to jovani
Hello Dear Foamers,

Bellow you find a ported version of the viscoelasticFluidFoam solver for the OpenFOAM-2.1.x. The actual version found on OpenFOAM-1.6-ext do not compile in the OpenFOAM-2.1.x because some differences in the return of the dot product. The credits of this work is to João Felipe Mitre.

http://dl.dropbox.com/u/4495083/visc...FOAM-2.1.x.tgz

Obs.: Tutorial cases was not ported!

Regards,
Jovani
jovani is offline   Reply With Quote

Old   May 7, 2012, 01:26
Default
  #182
ata
Senior Member
 
ata's Avatar
 
ata kamyabi
Join Date: Aug 2009
Location: Kerman
Posts: 323
Rep Power: 17
ata is on a distinguished road
Dear Jovani
Would you please upload it on sourceforg or google or ifile?
The address you have shared is not available for me.

Thanks a lot
ata is offline   Reply With Quote

Old   May 9, 2012, 19:19
Default
  #183
Member
 
Jovani L. Favero
Join Date: Mar 2009
Location: Rio de Janeiro, RJ, Brazil
Posts: 45
Rep Power: 18
jovani is on a distinguished road
Send a message via Skype™ to jovani
It is now also available to download on:
http://sourceforge.net/projects/vffo...x.tgz/download

Regards,
Jovani



Quote:
Originally Posted by ata View Post
Dear Jovani
Would you please upload it on sourceforg or google or ifile?
The address you have shared is not available for me.

Thanks a lot
jovani is offline   Reply With Quote

Old   May 10, 2012, 03:53
Default
  #184
ata
Senior Member
 
ata's Avatar
 
ata kamyabi
Join Date: Aug 2009
Location: Kerman
Posts: 323
Rep Power: 17
ata is on a distinguished road
Hi
Thanks a lot
ata is offline   Reply With Quote

Old   May 21, 2012, 20:25
Default
  #185
Senior Member
 
Srinath Madhavan (a.k.a pUl|)
Join Date: Mar 2009
Location: Edmonton, AB, Canada
Posts: 703
Rep Power: 21
msrinath80 is on a distinguished road
Quote:
Originally Posted by jovani View Post
It is now also available to download on:
http://sourceforge.net/projects/vffo...x.tgz/download

Regards,
Jovani
Thanks Dr. Jovani. Great work :-) Any idea if a viscoelasticInterfoam solver is also available?

Thanks again!
msrinath80 is offline   Reply With Quote

Old   May 30, 2012, 10:50
Default Question regarding to viscoelasticFluidFoam on OpenFOAM-2.1.x
  #186
New Member
 
Samir
Join Date: May 2012
Posts: 14
Rep Power: 13
samegypt is on a distinguished road
Dear all,
my name is Samir, it is my first time to use OpenFoam, I started reading and understanding the program structure, Kindly, I like to know, How I can embedd viscoelasticFluidFoam on OpenFOAM-2.1.x, shall I copy the files I download from http://sourceforge.net/projects/vffo...x.tgz/download to the OpenFoam directory, I am using ubuntu 12.04.
  • Please let me know the steps that I can follow in order to allow me to run any viscoelastic model without getting error in using the viscoelastic library.
  • One more question, is the provided code results validated and can be trusted.
thanks, and best regards.
samegypt is offline   Reply With Quote

Old   June 15, 2012, 05:54
Default Devss
  #187
Senior Member
 
Sita Drost
Join Date: Mar 2009
Location: Arnhem, The Netherlands
Posts: 227
Rep Power: 18
sita is on a distinguished road
Dear Jovani and others,

I'm not quite sure where to post my question on this forum, so I chose to just reply to what seems to be the most active thread on viscoelasticFluidFOAM.

Up to now, I've been trying and playing around with viscoelasticFluidFOAM, to get familiar with it. Everything seems to work fine, at least for steady state cases, so now I'm getting more confident and I'd like to proceed to unsteady cases, in particular, a 4:1 contraction at high Weissenberg numbers, using a linear simplified PTT model (in fact, I'm trying to reproduce results of Afonso et al., J. Fluid Mech. (2011), vol. 677, pp. 272-304).

In general it's not a very good idea to use stabilising techniques like DEVSS in unsteady flows, as in this case DEVSS just comes down to adding a lot of artificial diffusion to your problem, which makes it less accurate. So now I'm wondering: how can I "turn off" DEVSS, or at least reduce the value of kappa, in viscoelasticFluidFOAM?

Thanks in advance for your reply,

Regards,

Sita

P. S. I already tried a simulation at Wi = 100 with the code as it is, so with DEVSS. This gives me results that are very different from the results of Afonso et al. (much smaller corner vortices, no time-dependence and no asymmetry whatsoever).
By the way, Afonso et al. use the log-conformation tensor approach, which also may improve accuracy, so maybe it's just not fair to compare my results with theirs.
sita is offline   Reply With Quote

Old   June 17, 2012, 16:57
Default
  #188
Member
 
Jovani L. Favero
Join Date: Mar 2009
Location: Rio de Janeiro, RJ, Brazil
Posts: 45
Rep Power: 18
jovani is on a distinguished road
Send a message via Skype™ to jovani
Quote:
Originally Posted by sita View Post
Dear Jovani and others,

I'm not quite sure where to post my question on this forum, so I chose to just reply to what seems to be the most active thread on viscoelasticFluidFOAM.

Up to now, I've been trying and playing around with viscoelasticFluidFOAM, to get familiar with it. Everything seems to work fine, at least for steady state cases, so now I'm getting more confident and I'd like to proceed to unsteady cases, in particular, a 4:1 contraction at high Weissenberg numbers, using a linear simplified PTT model (in fact, I'm trying to reproduce results of Afonso et al., J. Fluid Mech. (2011), vol. 677, pp. 272-304).

In general it's not a very good idea to use stabilising techniques like DEVSS in unsteady flows, as in this case DEVSS just comes down to adding a lot of artificial diffusion to your problem, which makes it less accurate. So now I'm wondering: how can I "turn off" DEVSS, or at least reduce the value of kappa, in viscoelasticFluidFOAM?

Thanks in advance for your reply,

Regards,

Sita

P. S. I already tried a simulation at Wi = 100 with the code as it is, so with DEVSS. This gives me results that are very different from the results of Afonso et al. (much smaller corner vortices, no time-dependence and no asymmetry whatsoever).
By the way, Afonso et al. use the log-conformation tensor approach, which also may improve accuracy, so maybe it's just not fair to compare my results with theirs.

Hello dear Sita,

There is an old post where you find some hints about transient simulation using the viscoelasticFluidFoam solver:
http://www.cfd-online.com/Forums/ope...fluidfoam.html

To turn off the stabilising technique used in the solver go to the main file of the viscoelastc model you want and do the etaPEff = 0 in the divTau() funtion or take out the laplacian contributions in that terms that use etaPEff. I think log-conformation formulation do not improve accuracy, but just stabilize for HWNP.

Regards,
Jovani
jovani is offline   Reply With Quote

Old   June 18, 2012, 01:35
Default
  #189
Senior Member
 
Sita Drost
Join Date: Mar 2009
Location: Arnhem, The Netherlands
Posts: 227
Rep Power: 18
sita is on a distinguished road
Great, thanks a lot, I'll try this and see what happens.
sita is offline   Reply With Quote

Old   June 30, 2012, 18:36
Default Use single mode instead multimode
  #190
Member
 
Amin Shariat KHah
Join Date: Apr 2011
Location: Shiraz
Posts: 86
Rep Power: 15
amin144 is on a distinguished road
Hi dear Foamers
Some modelss like "Geuisekess" use 4 modes for solving cases.
If I want use single mode what should I do?
Is it enough to put zero for viscoelastic properties for 3 useless modes?

Thanks very much
amin144 is offline   Reply With Quote

Old   July 1, 2012, 03:58
Default
  #191
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
ok dear Amin,

just open the viscoelasticProperties of Giesekus Case and remove second,third and fourth modes on it.

Kind Regards
______________
Rasoul
amin144 likes this.
desert_1250 is offline   Reply With Quote

Old   September 6, 2012, 07:10
Default
  #192
New Member
 
sandip desai
Join Date: Jul 2012
Location: Pune, India
Posts: 7
Rep Power: 13
sandipd is on a distinguished road
Hiiii,

I am sandip. I am working with OpenFoam 2.0.1 (with Ubuntu 10.04), I am facing difficulty to install the ViscoelasticFluidFoam solver. Anybody, pls tell me what commands i need to follow..

thanks,

Sandip.
sandipd is offline   Reply With Quote

Old   September 8, 2012, 05:04
Default
  #193
ata
Senior Member
 
ata's Avatar
 
ata kamyabi
Join Date: Aug 2009
Location: Kerman
Posts: 323
Rep Power: 17
ata is on a distinguished road
Hi
Would you please explain the problem by details?
ata is offline   Reply With Quote

Old   September 10, 2012, 04:01
Default hii..
  #194
New Member
 
sandip desai
Join Date: Jul 2012
Location: Pune, India
Posts: 7
Rep Power: 13
sandipd is on a distinguished road
Hi ata,
Thanks for your reply..

While installing ViscoelasticFluidFoam, I used following commands -

cd src/transportModels/viscoelastic/ wmake libso && cd -
cd applications/solvers/viscoelastic/viscoelasticFluidFoam/ wmake && cd -

and I got the following error -


root@sandip-desktop:/home/sandip/viscoelasticFluidFoam-1.0-OpenFOAM-2.1.x/src/transportModels/viscoelastic# wmake libso && cd -

'/opt/openfoam201/platforms/linux64GccDPOpt/lib/libviscoelasticTransportModels.so' is up to date.
and then -


sandip@sandip-desktop:~/viscoelasticFluidFoam-1.0-OpenFOAM-2.1.x/applications/solvers/viscoelastic/viscoelasticFluidFoam$ wmake && cd -

touch: cannot touch `Make/linux64GccDPOpt/dontIncludeDeps': Permission denied
SOURCE=viscoelasticFluidFoam.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I/opt/openfoam211/src/finiteVolume/lnInclude -I/opt/openfoam211/src/transportModels/viscoelastic/lnInclude -I/opt/openfoam211/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam211/src/OpenFOAM/lnInclude -I/opt/openfoam211/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/viscoelasticFluidFoam.o
viscoelasticFluidFoam.C:37:31: error: viscoelasticModel.H: No such file or directory
In file included from viscoelasticFluidFoam.C:48:
createFields.H: In function ‘int main(int, char**)’:
createFields.H:37: error: ‘viscoelasticModel’ was not declared in this scope
createFields.H:37: error: expected ‘;’ before ‘visco’
viscoelasticFluidFoam.C:76: error: ‘visco’ was not declared in this scope
/opt/openfoam211/src/finiteVolume/lnInclude/readPISOControls.H:3: warning: unused variable ‘nOuterCorr’
/opt/openfoam211/src/finiteVolume/lnInclude/readPISOControls.H:12: warning: unused variable ‘momentumPredictor’
/opt/openfoam211/src/finiteVolume/lnInclude/readPISOControls.H:15: warning: unused variable ‘transonic’
make: *** [Make/linux64GccDPOpt/viscoelasticFluidFoam.o] Error 1

Please suggest me what exact steps (commands), i need to follow.

regards,

Sandip
__________________
- Sandip Desai
sandipd is offline   Reply With Quote

Old   September 10, 2012, 06:21
Default
  #195
ata
Senior Member
 
ata's Avatar
 
ata kamyabi
Join Date: Aug 2009
Location: Kerman
Posts: 323
Rep Power: 17
ata is on a distinguished road
Hi
It seems you have not permission. Try as root user.
ata is offline   Reply With Quote

Old   September 10, 2012, 06:29
Default
  #196
New Member
 
sandip desai
Join Date: Jul 2012
Location: Pune, India
Posts: 7
Rep Power: 13
sandipd is on a distinguished road
hii,

I agree, that I have to try it out with root user but is it with same commands ? or what exactly i need to follow ?
__________________
- Sandip Desai
sandipd is offline   Reply With Quote

Old   September 11, 2012, 01:51
Default
  #197
ata
Senior Member
 
ata's Avatar
 
ata kamyabi
Join Date: Aug 2009
Location: Kerman
Posts: 323
Rep Power: 17
ata is on a distinguished road
Hi
As I know, yes it is with the same command.
ata is offline   Reply With Quote

Old   September 13, 2012, 06:33
Default
  #198
Member
 
Amin Shariat KHah
Join Date: Apr 2011
Location: Shiraz
Posts: 86
Rep Power: 15
amin144 is on a distinguished road
Hi Dear FOAMERS

I installed ubuntu 12.04.
And after installed OF 2.1.1 and paraFoam.
They worked already. Now I want to add viscoelatic solver.
I Download it and placed in 'RUN' folder in 'home/OpenFOAM/user/RUN'
I extracted files and then went to address of files in terminal window
and ran: "wmake all"

It do a lot of works and for examples makes a folder named platform in its location.
but finally it say(some of last lines):


make[3]: Leaving directory `/home/amin/OpenFOAM/amin-2.1.1/tutorials/viscoelastic/viscoelasticFluidFoam'
make[2]: Leaving directory `/home/amin/OpenFOAM/amin-2.1.1/tutorials/viscoelastic'
make[1]: Leaving directory `/home/amin/OpenFOAM/amin-2.1.1/tutorials'
make: Target `application' not remade because of errors.

What's the matter? What should I do?
amin144 is offline   Reply With Quote

Old   September 13, 2012, 06:47
Default
  #199
New Member
 
sandip desai
Join Date: Jul 2012
Location: Pune, India
Posts: 7
Rep Power: 13
sandipd is on a distinguished road
Hi Foamers,
I followed this procedure and it is working fine nw -

1) The ported version of the viscoelasticFluidFoam solver downloaded from - http://sourceforge.net/projects/vffof21x/. And then extracted to /user/home/ folder. It had 3 directories and 1 file inside, which needs to put into the right place of openfoam dir. Mainly, the 'src' directory need to be in the right place because the compilation of the solver search for this inside src/transportModels, i.e. -

a) Copied 'src/transportModels/viscoelastic/' directory to 'opt/openfoam201/src/transportModel' directory.
b) Copied 'applications/solvers/viscoelastic/viscoelasticFluidFoam/' directory to 'opt/openfoam201/solver' directory.
c) Copied 'tutorials/viscoelastic' directory to 'opt/openfoam201/tutorials' directory.
d) Copied the file 'wmakeViscoelasticFluidFoam' to 'opt/openfoam201/wmake' directory.

2) The source with system files and compilation done with -

a) The source file linking to the solver directory can be generated by -
'cd opt/openfoam201/src/transport models/viscoelastic/&& wmake libso && cd -'

b) The solver directory need to be compile, and it can be done by -
'cd opt/openfoam201/applications/solvers/viscoelastic/viscoelasticFluidFoam/ && wmake && cd -'

c) The recompilation of Openfoam directory was needed, and it is done by -
'cd opt/openfoam201$ ./Allwmake

Note : It will recompile whole openfoam directory (including viscoelasticFluidFoam) and end up
with - '/opt/openfoam201/platforms/linux64GccDPOpt/bin/viscoelasticFluidFoam' is up to date.

hence, it is done..!!!
amin144 and shadabdyn like this.
__________________
- Sandip Desai
sandipd is offline   Reply With Quote

Old   September 13, 2012, 10:36
Default
  #200
Member
 
Amin Shariat KHah
Join Date: Apr 2011
Location: Shiraz
Posts: 86
Rep Power: 15
amin144 is on a distinguished road
Quote:
Originally Posted by sandipd View Post
Hi Foamers,
I followed this procedure and it is working fine nw -

1) The ported version of the viscoelasticFluidFoam solver downloaded from - http://sourceforge.net/projects/vffof21x/. And then extracted to /user/home/ folder. It had 3 directories and 1 file inside, which needs to put into the right place of openfoam dir. Mainly, the 'src' directory need to be in the right place because the compilation of the solver search for this inside src/transportModels, i.e. -

a) Copied 'src/transportModels/viscoelastic/' directory to 'opt/openfoam201/src/transportModel' directory.
b) Copied 'applications/solvers/viscoelastic/viscoelasticFluidFoam/' directory to 'opt/openfoam201/solver' directory.
c) Copied 'tutorials/viscoelastic' directory to 'opt/openfoam201/tutorials' directory.
d) Copied the file 'wmakeViscoelasticFluidFoam' to 'opt/openfoam201/wmake' directory.

2) The source with system files and compilation done with -

a) The source file linking to the solver directory can be generated by -
'cd opt/openfoam201/src/transport models/viscoelastic/&& wmake libso && cd -'

b) The solver directory need to be compile, and it can be done by -
'cd opt/openfoam201/applications/solvers/viscoelastic/viscoelasticFluidFoam/ && wmake && cd -'

c) The recompilation of Openfoam directory was needed, and it is done by -
'cd opt/openfoam201$ ./Allwmake

Note : It will recompile whole openfoam directory (including viscoelasticFluidFoam) and end up
with - '/opt/openfoam201/platforms/linux64GccDPOpt/bin/viscoelasticFluidFoam' is up to date.

hence, it is done..!!!
Thanks very much dear sandip
I done step 1
(Note for beginner user like me: it should be in root login mode)
But when I go to do step 2 terminal say me: "wmake: command not found"
But wmake exist in other user which is not root
I'm so confused!!!

Note: My openFOAM version is 2.1.1 not 2.0.1 and I corrected this number in codes
amin144 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 03:00
FREE SURFACE VISCOELASTIC FLOWS Valdemir G. Ferreira Main CFD Forum 6 December 18, 2009 06:14
Viscoelastic flow modeling in OpenFOAM vulda OpenFOAM Running, Solving & CFD 1 March 17, 2008 07:32
Polyflow & OpenFoam on Viscoelastic flow modeling Sumeshen Main CFD Forum 0 March 14, 2008 08:29
Viscoelastic fluid codes joel davison Main CFD Forum 0 November 6, 2001 05:09


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