I have warning in use swak4Foam
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 |
I have warning in use swak4Foam
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:
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 |
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. |
Quote:
|
oh,no,oh my god.I run this code: sudo apt-get remove gcc
removed my openFoam.:(:mad: |
Quote:
Or a better question: Why did you run that command? |
Quote:
|
Quote:
I have a problem.this error was: Quote:
|
Quote:
Which Linux distribution are you using? |
Quote:
|
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:
|
Quote:
|
Quote:
Code:
ls -l $FOAM_USER_APPBIN
|
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:
|
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" |
Quote:
source code is HTML Code:
http://openfoamwiki.net/index.php/Contrib/swak4Foam/Example_dropletVelocity |
Quote:
|
dear foamer I used this code in controlDict and I have seen error.
Code:
libs ( PHP Code:
|
Quote:
- swak did not compile correctly or - you compiled it as a different user |
my libraries are:
PHP Code:
I have to add these libraries to swak because I so need these libraries. |
All times are GMT -4. The time now is 03:58. |