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

interFoam - validation for bubble/droplet flows in microfluidics

Register Blogs Community New Posts Updated Threads Search

Like Tree39Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 22, 2017, 07:00
Default
  #21
New Member
 
Peter Favreau
Join Date: Apr 2017
Posts: 7
Rep Power: 9
pfavreau is on a distinguished road
Yeah ! It works. Thank you, and I hope this version will be implemented in the next release of OpenFOAM, it's really a great work !

Best regards,

Peter
pfavreau is offline   Reply With Quote

Old   July 10, 2017, 12:11
Default
  #22
Senior Member
 
floquation's Avatar
 
Kevin van As
Join Date: Sep 2014
Location: TU Delft, The Netherlands
Posts: 252
Rep Power: 20
floquation will become famous soon enough
Quote:
Originally Posted by pfavreau View Post
Yeah ! It works. Thank you, and I hope this version will be implemented in the next release of OpenFOAM, it's really a great work !

Best regards,

Peter
It is already working for you, but for your future reference: I have updated the library with updated instructions.
I could not maintain binary compatibility, hence it is mandatory to recompile your solver. Luckily, this can be done without making any changes to the solver.
I have written a script that can automatically recompile any solver for you, which is located in the "recompileSolvers" directory. See the updated README for instructions.
floquation is offline   Reply With Quote

Old   July 30, 2017, 18:05
Default
  #23
New Member
 
Join Date: Jul 2017
Posts: 7
Rep Power: 8
miao568666 is on a distinguished road
Is there an OF-5.0 version available?

Quote:
Originally Posted by floquation View Post
Have a look at the following.


OF-4.x implementation of 'vofsmooth':
I have implemented Duong's "vofsmooth" in OF-4.x.
It was implemented using OF's run-time selection mechanism and a dynamic library trick, such that it should work with any solver (that uses OF's libinterfaceProperties.so: inter(DyM)Foam, compressibleInter(DyM)Foam, multiphaseInter(DyM)Foam, interPhaseChange(DyM)Foam and very likely some more.)
[Disclaimer: I have only tried inter(DyM)Foam in my work.]

See the README.md on GitHub:
https://github.com/floquation/OF-kva...faceProperties
miao568666 is offline   Reply With Quote

Old   July 31, 2017, 10:50
Default
  #24
Senior Member
 
floquation's Avatar
 
Kevin van As
Join Date: Sep 2014
Location: TU Delft, The Netherlands
Posts: 252
Rep Power: 20
floquation will become famous soon enough
Quote:
Originally Posted by miao568666 View Post
Is there an OF-5.0 version available?
I did not yet know OF-5.0 was released.

I have just adapted the code to work with OF-5.0 for you (and others) and pushed it to the same GitHub page. Make sure to checkout the branch "of50", as is now also mentioned in the updated README file.
floquation is offline   Reply With Quote

Old   July 31, 2017, 11:16
Default
  #25
New Member
 
Join Date: Jul 2017
Posts: 7
Rep Power: 8
miao568666 is on a distinguished road
This is awesome! Thanks Kevin.

Quote:
Originally Posted by floquation View Post
I did not yet know OF-5.0 was released.

I have just adapted the code to work with OF-5.0 for you (and others) and pushed it to the same GitHub page. Make sure to checkout the branch "of50", as is now also mentioned in the updated README file.
miao568666 is offline   Reply With Quote

Old   August 2, 2017, 10:04
Default
  #26
New Member
 
Join Date: Jul 2017
Posts: 7
Rep Power: 8
miao568666 is on a distinguished road
Hi Kevin,

May I get your advice on how to adapt old version Openfoam codes to newest version? I know it's not easy. But any general instructions are very helpful.

Quote:
Originally Posted by floquation View Post
I did not yet know OF-5.0 was released.

I have just adapted the code to work with OF-5.0 for you (and others) and pushed it to the same GitHub page. Make sure to checkout the branch "of50", as is now also mentioned in the updated README file.
miao568666 is offline   Reply With Quote

Old   August 2, 2017, 10:29
Default
  #27
Senior Member
 
floquation's Avatar
 
Kevin van As
Join Date: Sep 2014
Location: TU Delft, The Netherlands
Posts: 252
Rep Power: 20
floquation will become famous soon enough
Quote:
Originally Posted by miao568666 View Post
Hi Kevin,

May I get your advice on how to adapt old version Openfoam codes to newest version? I know it's not easy. But any general instructions are very helpful.
Put two similar codes from both the old and new version next to each other.
For example, if you have a custom solver based on interFoam in 2.1.x, then I'd open the real interFoam of 2.1.x and the interFoam of the new version.
Then by first comparing Make/options and then each individual source file of those two interFoams, I can figure out how to adapt my code to the new version.
floquation is offline   Reply With Quote

Old   August 2, 2017, 10:32
Thumbs up
  #28
New Member
 
Join Date: Jul 2017
Posts: 7
Rep Power: 8
miao568666 is on a distinguished road
Thanks Kevin for these wonderful advices! I will try out.

Quote:
Originally Posted by floquation View Post
Put two similar codes from both the old and new version next to each other.
For example, if you have a custom solver based on interFoam in 2.1.x, then I'd open the real interFoam of 2.1.x and the interFoam of the new version.
Then by first comparing Make/options and then each individual source file of those two interFoams, I can figure out how to adapt my code to the new version.
miao568666 is offline   Reply With Quote

Old   September 8, 2017, 08:24
Default
  #29
New Member
 
Join Date: Jul 2017
Posts: 7
Rep Power: 8
miao568666 is on a distinguished road
Quote:
Originally Posted by floquation View Post
Put two similar codes from both the old and new version next to each other.
For example, if you have a custom solver based on interFoam in 2.1.x, then I'd open the real interFoam of 2.1.x and the interFoam of the new version.
Then by first comparing Make/options and then each individual source file of those two interFoams, I can figure out how to adapt my code to the new version.
Hi Kevin, after I removed this library, Openfoam still asked me to set curvatureModel when using interFoam, how to avoid this problem?
miao568666 is offline   Reply With Quote

Old   September 11, 2017, 03:26
Default
  #30
Senior Member
 
floquation's Avatar
 
Kevin van As
Join Date: Sep 2014
Location: TU Delft, The Netherlands
Posts: 252
Rep Power: 20
floquation will become famous soon enough
Quote:
Originally Posted by miao568666 View Post
Hi Kevin, after I removed this library, Openfoam still asked me to set curvatureModel when using interFoam, how to avoid this problem?
What exactly did you do to remove it?
If OF is asking you to set "curvatureModel", the library is not removed.
You should remove the .so file from the directory $FOAM_USER_LIBBIN.
floquation is offline   Reply With Quote

Old   September 11, 2017, 07:36
Default
  #31
New Member
 
Join Date: Jul 2017
Posts: 7
Rep Power: 8
miao568666 is on a distinguished road
Quote:
Originally Posted by floquation View Post
What exactly did you do to remove it?
If OF is asking you to set "curvatureModel", the library is not removed.
You should remove the .so file from the directory $FOAM_USER_LIBBIN.
Thanks Kevin, I did as what you said, it works, thanks!
miao568666 is offline   Reply With Quote

Old   October 19, 2017, 11:19
Default
  #32
Senior Member
 
sandy
Join Date: Feb 2016
Location: .
Posts: 117
Rep Power: 10
saddy is on a distinguished road
Hey Kevin
i saw your discussions on VOF smoothing and i see you 've been working on boiling flows.
i am also working on boiling and i am using intercondensatingevaporatingfoam solver
from OPENFOAM-V1612+ from ESI
I hve added dynamic meshing to it
it's however plagued with spurious currents.
can you please add vof smoothing for openfoam-v1612+ ?? add support for OPENFOAM ESI
my intercondensatinngevaporatingfoam is attached in this forum...
i'll send you the link if you want to try...
saddy is offline   Reply With Quote

Old   October 25, 2017, 06:20
Default
  #33
JSR
New Member
 
Jaijeet
Join Date: Feb 2017
Posts: 6
Rep Power: 9
JSR is on a distinguished road
Dear all,
I m also validating two phase slug flow in T junction microreactor using interFoam with constantContactAngle of 140 and so on.......till now results matches nicely till slug breaking mechanism....but after that as slug move in main channel it start accelerating and its size increases till outlet comes......what is the issue,I am stuck now (by observation as one phase block other phase at junction and then it break slug, the slug in main channel accelerates)

I think someone can understand my issue....
JSR is offline   Reply With Quote

Old   January 9, 2018, 14:06
Default
  #34
New Member
 
Michal Solarski
Join Date: Nov 2017
Posts: 1
Rep Power: 0
mikebham669 is on a distinguished road
Quote:
Originally Posted by floquation View Post
I did not yet know OF-5.0 was released.

I have just adapted the code to work with OF-5.0 for you (and others) and pushed it to the same GitHub page. Make sure to checkout the branch "of50", as is now also mentioned in the updated README file.
Hi Kevin,

for some reason I cannot run ./Allget. At first there was an error saying wrong directory. I have figured that my sh was in bin/sh rather than usr/bin/sh.
Now when I run it I get error from line 33 that "(" is unexpected and pretty much all the other brackets in line 33 and 34. I am pretty sure they should be there and even after removing them I get a syntax error that line 42 "(" is unexpected (expecting "done"). This is seriously doing my head in...
mikebham669 is offline   Reply With Quote

Old   January 19, 2018, 07:10
Default
  #35
Senior Member
 
floquation's Avatar
 
Kevin van As
Join Date: Sep 2014
Location: TU Delft, The Netherlands
Posts: 252
Rep Power: 20
floquation will become famous soon enough
Quote:
Originally Posted by mikebham669 View Post
Hi Kevin,

for some reason I cannot run ./Allget. At first there was an error saying wrong directory. I have figured that my sh was in bin/sh rather than usr/bin/sh.
Now when I run it I get error from line 33 that "(" is unexpected and pretty much all the other brackets in line 33 and 34. I am pretty sure they should be there and even after removing them I get a syntax error that line 42 "(" is unexpected (expecting "done"). This is seriously doing my head in...
I can ensure you that the script works for me, so especially the brackets should be correct.
First try executing the script by explicitly specifying the running environment (from the directory that contains the script):
Code:
sh ./Allget
If that doesn't work, what version of sh do you have?
Code:
sh --version
The script was written to work with bash. If you have a different shell (like kcsh), then the script has never been checked whether it is compatible. Try executing it explicitly using bash (if your machine has it):
Code:
bash ./Allget
As alternative: you don't need the script to use my library. It is just a convenience thing. In the README on GitHub I also wrote instruction to install my library without the Allget script.
In fact, all that Allget does is use your "list_of_solvers" file to repetitively call the getSolverMake.sh script for all solvers you wish to recompile. You can do that by hand as well (see the README on GitHub).
Then, getSolverMake.sh (I hope that one works for you) modifies some files of the solver like Make/files and Make/options to automagically link it against my library, and set its compilation location to $FOAM_USER_APPBIN: the place where custom solvers should go.

Hope that helps you.
floquation is offline   Reply With Quote

Old   March 11, 2018, 18:53
Default
  #36
New Member
 
Leon
Join Date: Feb 2018
Posts: 1
Rep Power: 0
O'nel is on a distinguished road
Hey Kevin and Michal,

first of thanks a lot for the port and your detailed description on github Kevin!
I ran into the same problem that Michal had and managed to fix it, simply by replacing the first line:

#! /usr/bin/sh

with:

#!/bin/bash

in the Allget, Allwmake and the getSolverMake.sh script.

I hope this is helpful for other foamers out there.

Best regards,
Leon
floquation likes this.
O'nel is offline   Reply With Quote

Old   April 30, 2018, 07:15
Default
  #37
Senior Member
 
floquation's Avatar
 
Kevin van As
Join Date: Sep 2014
Location: TU Delft, The Netherlands
Posts: 252
Rep Power: 20
floquation will become famous soon enough
Quote:
Originally Posted by O'nel View Post
#! /usr/bin/sh

with:

#!/bin/bash
Thank you for putting that out here.
In the meantime I'd run into the same problem with a student of mine who wanted to use his own laptop as well, for which we used that same solution.

I just wonder what the "proper" Linux way of writing the shebang is... Perhaps using env?
Code:
/usr/bin/env bash
floquation is offline   Reply With Quote

Old   August 24, 2018, 07:12
Default
  #38
Member
 
Join Date: May 2016
Posts: 39
Rep Power: 9
dzordz is on a distinguished road
Hi Kevin,

Quote:
Theoretically, it should work with any OF solver that relies on OF's interfaceProperties, as kva_interfaceProperties merely overrides OF's interfaceProperties' behaviour:
I have a question regarding the multiphaseInterFoam solver, which you say it is compatible with kva_interfaceProperties. I find this not to be true, since the curvature calculation is not being done in interfaceProperties.C (like interFoam), but instead in multiphaseMixture.C. Compilation with recompile solver is done without error.



Also the compressibleInterFoam compiles without error. Then it gives an error: keyword water in not defined in the dictionary thermophysicalProperties. Solution: Phases and propreties need to be added there, since the code calls for rho1_ and rho2_ in order to use densityWeighted model. Am I assuming correct that if the model is turned off these values could be arbitrary and will not affect the calculations?


I might be getting something wrong in how your code is implemented though. Any thoughts?

Thanks

Last edited by dzordz; August 28, 2018 at 05:46.
dzordz is offline   Reply With Quote

Old   September 3, 2018, 06:08
Default
  #39
New Member
 
Guang
Join Date: Feb 2015
Location: Stuttgart, Germany
Posts: 15
Rep Power: 11
stardust111 is on a distinguished road
Dear Kevin,
Thank you very much for sharing your code. It was really useful for my project.
However, now I met a problem when compiling it to the compressibleInterFoam:
compressibleInterFoam.C:46:35: fatal error: twoPhaseMixtureThermo.H: No such file or directory
Do you have any clue to solve this? Thanks a lot.P.S.: I have successfully compiled the interFoam solver with your code without any error.P.S.2: I have both OF40 and OF50 on my computer, both have the same problem.
best
Guang
stardust111 is offline   Reply With Quote

Old   September 3, 2018, 09:34
Default
  #40
Member
 
Join Date: May 2016
Posts: 39
Rep Power: 9
dzordz is on a distinguished road
Quote:
Originally Posted by stardust111 View Post
Dear Kevin,
Thank you very much for sharing your code. It was really useful for my project.
However, now I met a problem when compiling it to the compressibleInterFoam:
compressibleInterFoam.C:46:35: fatal error: twoPhaseMixtureThermo.H: No such file or directory
Do you have any clue to solve this? Thanks a lot.P.S.: I have successfully compiled the interFoam solver with your code without any error.P.S.2: I have both OF40 and OF50 on my computer, both have the same problem.
best
Guang

I had the same issue with this compilation. For some reason linking in Make/options file to this twoPhaseMixtureThermo folder fails. What solved my problem (probably not smoothest solution) is adding an additional line in options -I/.....path to twoPhaseMixtureThermo folder.... \


Hope it helps.
dzordz 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
Setting BCs for Riverine Flows using Interfoam kflora OpenFOAM Running, Solving & CFD 38 July 27, 2022 06:51
CFX problem in ubuntu (linux) Vigneshramaero CFX 0 July 13, 2012 10:22
CFX-Pre problem, pls help!!! cth_yao CFX 0 February 17, 2012 00:52
validation for densely packed channel flows shefali Main CFD Forum 1 February 8, 2011 03:35
Validation tests for 3-D flows Alexey Main CFD Forum 1 January 5, 2000 23:48


All times are GMT -4. The time now is 12:19.