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. |
Quote:
Have a look at the error message: there is already a fix on the MessageBoard |
now,I must recompiling this swak or cleaning this swak and compile other swak?
whats a complete swak address in net which I download and compile it.??? my openFoam is 2.2.1 and my swak is 0.2.4 |
Greetings to all!
@seju: Quote:
If this doesn't work, please provide more details on the steps you are taking, as well as how exactly you installed OpenFOAM on your machine. In addition, if you also have OpenFOAM 1.6-ext, please detail how you switch between the two versions. Best regards, Bruno |
Quote:
PHP Code:
I have ubuntu and windows 7 abreast.I dont install openfoam in virtualbox.I install ubuntu absolute. I fialed in compile openFoam 1.6 ext and I just have openFoam 2.2.1. I installed openFoam 2.2.1 From this link PHP Code:
|
Hi seju,
Many thanks the information! I've tested the following steps on a VM with Ubuntu 13.04 (64bit) and with the same OpenFOAM 2.2.1 installation and they should work as intended:
Best regards, Bruno |
dear Bruno and Mr.Gschaider my problem solved.thank you so much.
but I have another problem in: HTML Code:
http://www.cfd-online.com/Forums/openfoam-meshing/125508-problem-axisymmetric-mesh.html#post459204 |
Problems building swak4Foam
Hi everyone,
First of all, happy new year! I am a new Foamer. And, this is my first post. I am using ubuntu 13.10 and have installed openFoam 2.2.2. What I want to do is to modify the wind velocity profile in the turbineSiting tutorial. So, I decided to download swak4Foam in order to use groovyBC. But, when I use it, it seems that it was not built in the right way. I even used these two patches: 1. http://www.cfd-online.com/Forums/ope...tml#post415028) 2. http://www.cfd-online.com/Forums/ope...tml#post434217 Here is the error messages I get: Code:
seif@seif-ThinkStation-E31:~/OpenFOAM/seif-2.2.2/run/tutorials/incompressible/simpleFoam/turbineSiting$ foamCalc mag U Seif |
Greetings Seif and welcome to the forum!
Try these steps:
Bruno |
Hi Bruno,
Thank you for your relpy. But, following these steps, here is the error messages I get: Code:
../FieldValueExpressionParser.yy:5499:13: note: in expansion of macro ‘sameSize’ Seif |
Hi Seif,
What does the file "make.log" have in its first 10 lines? Best regards, Bruno |
Hi Bruno,
First of all, sorry for my late reply. Here are the first 10 lines of the log file: No 'swakConfiguration'. Python etc won't work Checking swak4Foam-version and generating file Swak version is 0.2.4 Bison is version 3.0 Flex is version 2.5.35 (Minor version: 35) OpenFOAM-version: Major 2 Minor 2 Patch 2 (-1 == x) No change to swak4FoamParsers/foamVersion4swak.H SOURCE=FieldValueExpressionParser.yy ; rm -f Make/linux64GccDPOpt/FieldValueExpressionParser.C Make/linux64GccDPOpt/FieldValueExpressionParser.tab.hh; mkdir $$; cd $$; bison -ra -v -d .. Best regards, Seif |
Quote:
May I ask: which Distro installs Bison 3 by default? Or did you install it yourself from the sources? |
Greetings to all!
@Bernhard: Quote:
My guess is that Seif built Bison 3.0 from source code? Best regards, Bruno |
Quote:
BTW: just checked. The development version checks for bison3 and refuses to go further (must have put that in around the time of the above MacPorts-ticket) From my short look it seemed that the changes necessary to the swak-grammar-files would make them incompatible with bison 2.x. And as long as there is not a significant portion (5-10%) of the Linux-installations out there with bison 3.x I don't consider converting (because that would force people to hand install a bison 3.x on top of the one they already have) |
Hi Bernhard,
What do you recommend me to do? Best, Seif |
Quote:
Either using the package manager of your OS (that is preferred). If that is not possible download the sources and compile it from there (that is described in the README that comes with those sources). Only two things: use the --prefix-option of configure to "install" it to a private directory (don't overwrite the system-bison) and add the directory to the PATH before compiling. As you're using a cutting-edge distro (which distro ARE you using, by the way?) you should be comfortable with these instructions. If you're not I'd recommend using a more mainstream-distribution |
All times are GMT -4. The time now is 20:14. |