|
[Sponsors] |
October 14, 2013, 07:27 |
I have warning in use swak4Foam
|
#1 |
Member
sajad
Join Date: Aug 2013
Posts: 70
Rep Power: 12 |
Dear foamer
I want use this code for calculate droplet velocity but I dont kwon any thing.I dont know I must how use it? its: downAverage { type swakExpression; valueType internalField; variables ( "downDirection=vector(0,-1,0);"//select the downwards direction "thres=0.5;"//which cells to keep "liquidVol=sum(alpha1>thres ? vol() : 0);" //calculates the volume of the drop "downVel=alpha1>thres ? (U & downDirection) : 0;" //a & b:inner vector product. Keep the y component of U. ); expression "downVel*vol()/liquidVol" //vol():vol of the cell accumulations ( sum ); verbose true; } please help me. I dont know any thing about use swak4Foam,I just found this code in wiki. http://www.openfoamwiki.net/index.ph...ropletVelocity |
|
October 19, 2013, 07:56 |
I have warning in use swak4Foam
|
#2 |
Member
sajad
Join Date: Aug 2013
Posts: 70
Rep Power: 12 |
dear foamer
I have compiled swak4Foam 0.2.4 on openFoam 2.2.1; I want calculate the velocity of bubble or droplet. I added this code to controlDict: Code:
libs ( "libOpenFOAM.so" "libsimpleSwakFunctionObjects.so" "libswakFunctionObjects.so" "libgroovyBC.so" ); downAverage { type swakExpression; valueType internalField; variables ( "downDirection=vector(0,-1,0);"//select the downwards direction "thres=0.5;"//which cells to keep "liquidVol=sum(alpha1>thres ? vol() : 0);" //calculates the volume of the drop "downVel=alpha1>thres ? (U & downDirection) : 0;" //a & b:inner vector product. Keep the y component of U. ); expression "downVel*vol()/liquidVol";//vol():vol of the cell accumulations ( sum ); verbose true; } what do I do????? warnings are: Code:
sajad@sajad-K55VD:~/OpenFOAM/sajad-2.2.1/run/tutorials/multiphase/interFoam/laminar/c4$ cp -r 0/alpha1.org 0/alpha1 sajad@sajad-K55VD:~/OpenFOAM/sajad-2.2.1/run/tutorials/multiphase/interFoam/laminar/c4$ setFields /*---------------------------------------------------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 2.2.1 | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ Build : 2.2.1-57f3c3617a2d Exec : setFields Date : Oct 20 2013 Time : 15:03:08 Host : "sajad-K55VD" PID : 7262 Case : /home/sajad/OpenFOAM/sajad-2.2.1/run/tutorials/multiphase/interFoam/laminar/c4 nProcs : 1 sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE). fileModificationChecking : Monitoring run-time modified files using timeStampMaster allowSystemOperations : Disallowing user-supplied system call operations // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // Create time --> FOAM Warning : From function dlOpen(const fileName&, const bool) in file POSIX.C at line 1179 dlopen error : libsimpleSwakFunctionObjects.so: cannot open shared object file: No such file or directory --> FOAM Warning : From function dlLibraryTable:pen(const fileName&, const bool) in file db/dynamicLibrary/dlLibraryTable/dlLibraryTable.C at line 99 could not load "libsimpleSwakFunctionObjects.so" --> FOAM Warning : From function dlOpen(const fileName&, const bool) in file POSIX.C at line 1179 dlopen error : libswakFunctionObjects.so: cannot open shared object file: No such file or directory --> FOAM Warning : From function dlLibraryTable:pen(const fileName&, const bool) in file db/dynamicLibrary/dlLibraryTable/dlLibraryTable.C at line 99 could not load "libswakFunctionObjects.so" Create mesh for time = 0 Reading setFieldsDict Setting field default values Setting internal values of volScalarField alpha1 Setting field region values Adding cells with centre within sphere, with centre = (0.21 0.185 0) and radius = 0.0098474 Setting internal values of volScalarField alpha1 End sajad@sajad-K55VD:~/OpenFOAM/sajad-2.2.1/run/tutorials/multiphase/interFoam/laminar/c4$ interFoam /*---------------------------------------------------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 2.2.1 | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ Build : 2.2.1-57f3c3617a2d Exec : interFoam Date : Oct 20 2013 Time : 15:03:17 Host : "sajad-K55VD" PID : 7263 Case : /home/sajad/OpenFOAM/sajad-2.2.1/run/tutorials/multiphase/interFoam/laminar/c4 nProcs : 1 sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE). fileModificationChecking : Monitoring run-time modified files using timeStampMaster allowSystemOperations : Disallowing user-supplied system call operations // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // Create time --> FOAM Warning : From function dlOpen(const fileName&, const bool) in file POSIX.C at line 1179 dlopen error : libsimpleSwakFunctionObjects.so: cannot open shared object file: No such file or directory --> FOAM Warning : From function dlLibraryTable:pen(const fileName&, const bool) in file db/dynamicLibrary/dlLibraryTable/dlLibraryTable.C at line 99 could not load "libsimpleSwakFunctionObjects.so" --> FOAM Warning : From function dlOpen(const fileName&, const bool) in file POSIX.C at line 1179 dlopen error : libswakFunctionObjects.so: cannot open shared object file: No such file or directory --> FOAM Warning : From function dlLibraryTable:pen(const fileName&, const bool) in file db/dynamicLibrary/dlLibraryTable/dlLibraryTable.C at line 99 could not load "libswakFunctionObjects.so" Create mesh for time = 0 PIMPLE: Operating solver in PISO mode Reading field p_rgh Reading field U Reading/calculating face flux field phi Reading transportProperties Selecting incompressible transport model Newtonian Selecting incompressible transport model Newtonian Selecting turbulence model type laminar Reading g Calculating field g.h No finite volume options present time step continuity errors : sum local = 0, global = 0, cumulative = 0 DICPCG: Solving for pcorr, Initial residual = 0, Final residual = 0, No Iterations 0 time step continuity errors : sum local = 0, global = 0, cumulative = 0 Courant Number mean: 0 max: 0 Starting time loop Courant Number mean: 0 max: 0 Interface Courant Number mean: 0 max: 0 deltaT = 0.01 Time = 0.01 MULES: Solving for alpha1 Phase-1 volume fraction = 0.998911 Min(alpha1) = 0 Max(alpha1) = 1 MULES: Solving for alpha1 Phase-1 volume fraction = 0.998911 Min(alpha1) = 0 Max(alpha1) = 1 DICPCG: Solving for p_rgh, Initial residual = 1, Final residual = 0.0468969, No Iterations 5 time step continuity errors : sum local = 0.0186152, global = -5.5655e-20, cumulative = -5.5655e-20 DICPCG: Solving for p_rgh, Initial residual = 0.929295, Final residual = 0.0428746, No Iterations 11 time step continuity errors : sum local = 0.01934, global = -1.08697e-19, cumulative = -1.64352e-19 DICPCG: Solving for p_rgh, Initial residual = 0.674363, Final residual = 0.000234574, No Iterations 1001 time step continuity errors : sum local = 1.57286e-05, global = -6.24738e-20, cumulative = -2.26826e-19 ExecutionTime = 15.76 s ClockTime = 16 s Courant Number mean: 0.0113272 max: 47.3745 Interface Courant Number mean: 0 max: 0 deltaT = 0.000105541 Time = 0.0101055 Last edited by wyldckat; October 19, 2013 at 16:55. Reason: Changed [QUOTE] to [CODE][/CODE] |
|
October 19, 2013, 17:01 |
|
#3 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
Greetings seju,
It looks like swak4Foam did not build properly. Run this command to check if the desired library file exists: Code:
ls -l $FOAM_USER_LIBBIN/ I do suspect that you built swak4Foam as root, which would explain why now you do not have it installed as normal user. But just in case, please explain how exactly you installed swak4Foam. Best regards, Bruno PS: Please read the instructions from the second link on my signature edit: I've merged your other thread with this one, namely the first post is from your older thread. This way all can be in the same topic regarding this issue.
__________________
Last edited by wyldckat; October 19, 2013 at 17:04. Reason: see "edit:" |
|
October 19, 2013, 18:04 |
|
#4 |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Seems there was a problem with compiling swak and there is no libsimpleSwakFunctionObjects.so in FOAM_USER_LIBBIN
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
|
October 19, 2013, 20:57 |
|
#5 |
Member
sajad
Join Date: Aug 2013
Posts: 70
Rep Power: 12 |
oh,no,oh my god.I run this code: sudo apt-get remove gcc
removed my openFoam. |
|
October 20, 2013, 03:17 |
|
#6 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
Why would you need to run that command?
Or a better question: Why did you run that command?
__________________
|
|
October 20, 2013, 06:59 |
|
#7 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
||
October 20, 2013, 07:04 |
|
#8 | ||
Member
sajad
Join Date: Aug 2013
Posts: 70
Rep Power: 12 |
Quote:
I have a problem.this error was: Quote:
|
|||
October 20, 2013, 07:18 |
|
#9 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
Quote:
Which Linux distribution are you using?
__________________
|
||
October 20, 2013, 07:22 |
|
#10 |
Member
sajad
Join Date: Aug 2013
Posts: 70
Rep Power: 12 |
||
October 20, 2013, 10:18 |
|
#11 | |||
Member
sajad
Join Date: Aug 2013
Posts: 70
Rep Power: 12 |
Quote:
I used this page:https://github.com/wyldckat/swak4foam/tree/OF22X and in terminal on the openFoam folder I input: PHP Code:
PHP Code:
PHP Code:
Quote:
Quote:
|
||||
October 20, 2013, 10:39 |
|
#12 | |
Member
sajad
Join Date: Aug 2013
Posts: 70
Rep Power: 12 |
Quote:
|
||
October 20, 2013, 10:49 |
|
#13 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
It's in the applications folder:
Code:
ls -l $FOAM_USER_APPBIN
__________________
|
|
October 21, 2013, 03:05 |
|
#14 |
Member
sajad
Join Date: Aug 2013
Posts: 70
Rep Power: 12 |
dear bruno
I didnt solve my problem.I added this code in my controlDict but I dont see any change in terminal and simulation.I want calculate velocity bubble or droplet code is: PHP Code:
|
|
October 21, 2013, 04:40 |
|
#15 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
Anyway:the definition of function Objects should be inside the functions-list (or dictionary). The way you write it OF says "Ah. Interesting. A sub-dicitonary downAverage. Don't know what to do with it so I'll ignore it. On the other hand he didn't define a functions-dictionary. Fine. Less work for me"
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
||
October 21, 2013, 06:29 |
|
#16 | |
Member
sajad
Join Date: Aug 2013
Posts: 70
Rep Power: 12 |
Quote:
source code is HTML Code:
http://openfoamwiki.net/index.php/Contrib/swak4Foam/Example_dropletVelocity |
||
October 21, 2013, 10:34 |
|
#17 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
||
October 23, 2013, 03:15 |
|
#18 |
Member
sajad
Join Date: Aug 2013
Posts: 70
Rep Power: 12 |
dear foamer I used this code in controlDict and I have seen error.
Code:
libs ( "libOpenFOAM.so" "libsimpleSwakFunctionObjects.so" "libswakFunctionObjects.so" ); downAverage { type swakExpression; valueType internalField; variables ( "downDirection=vector(0,-1,0);"//select the downwards direction "thres=0.5;"//which cells to keep "liquidVol=sum(alpha1>thres ? vol() : 0);" //calculates the volume of the drop "downVel=alpha1>thres ? (U & downDirection) : 0;" //a & b:inner vector product. Keep the y component of U. ); expression "downVel*vol()/liquidVol";//vol():vol of the cell accumulations ( sum ); verbose true; } PHP Code:
|
|
October 23, 2013, 16:47 |
|
#19 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
- swak did not compile correctly or - you compiled it as a different user
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
||
October 24, 2013, 17:27 |
|
#20 |
Member
sajad
Join Date: Aug 2013
Posts: 70
Rep Power: 12 |
my libraries are:
PHP Code:
I have to add these libraries to swak because I so need these libraries. |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
using METIS functions in fortran | dokeun | Main CFD Forum | 7 | January 29, 2013 04:06 |
[blockMesh] BlockMesh FOAM warning | gaottino | OpenFOAM Meshing & Mesh Conversion | 7 | July 19, 2010 14:11 |
latest OpenFOAM-1.6.x from git failed to compile | phsieh2005 | OpenFOAM Bugs | 25 | February 9, 2010 04:37 |
Compilation errors in ThirdPartymallochoard | feng_w | OpenFOAM Installation | 1 | January 25, 2009 06:59 |
[blockMesh] Axisymmetrical mesh | Rasmus Gjesing (Gjesing) | OpenFOAM Meshing & Mesh Conversion | 10 | April 2, 2007 14:00 |