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 |
Quote:
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. |
Is there an OF-5.0 version available?
Quote:
|
Quote:
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. |
This is awesome! Thanks Kevin.
Quote:
|
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:
|
Quote:
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. |
Thanks Kevin for these wonderful advices! I will try out. :)
Quote:
|
Quote:
|
Quote:
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. |
Quote:
|
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... |
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.... |
Quote:
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... |
Quote:
First try executing the script by explicitly specifying the running environment (from the directory that contains the script): Code:
sh ./Allget Code:
sh --version Code:
bash ./Allget 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. |
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 |
Quote:
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 |
Hi Kevin,
Quote:
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 |
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 |
Quote:
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. |
All times are GMT -4. The time now is 19:53. |