Generating a parabolic Profile with groovyBC
How can i generate a parabolic velocity profile with groovyBC?
The entry in the openfoamwiki isnt really helpful. The example "parabolic inlet condition that pulsates " generates an error and i cant find any "real" documentation. If someone could point me to the solution i would be really grateful.
I managed to get a parabolic profile with
pow() does not accecpt non integer values for the exponent like pow(a,1.5) is this a "normal" behaviour?
i need some function to get the distance from a point like
distance = pos().z-w now this will result in an negative value if pos().z <w which "should" be positive, i tried abs() but it seems its not implemented and i tried something like sqr(pow(pos().z-w,2)) which doesnt work either.
has anybody an idea?
Sorry for answering so late; I solved the problem another way.
I think (I did and learned a lot inf and of OpenFOAM the last days) I just missused the Expression.
Can someone tell me how I can use groovyBC?
I read the article in OpenFoamWiki http://openfoamwiki.net/index.php/Co...rds_of_warning,
but I do not understand this part:
To compile this utility Bison has to be installed. The compilation is known to work with version 2.4.1. It may probably work with older versions. Check with
on the command line before trying to compile it and report the version number when reporting a problem.
2.1 Compilation and installation
in the directory of the sources. The library will be compiled and installed in a place (%FOAM_USER_LIBBIN) where it is usable
I installed bison 2.4.1 like it is written in the install-file:
where do I now have to write "wmake libso"? What means "in the directory of sources"?
you have to type "wmake libso" in the directory of groovyBC. The directory "make" should be in that directory where to type "wmake libso".
Wenn du wmake eintippst sucht das Skript nach dem Ordner Make und dort nach den Steuerdateien, deswegen musst dein aktuelles Arbeitsverzeichnis Der Ordner sein wo der Ordner "make" drinliegt.
I tried to do so but, I have a problem in compiling groovyBC. I am using OF 1.6.x.
I have bison (GNU Bison) 2.4.1 and flex 2.5.35.
I copied all the files of groovyBC from here https://openfoam-extend.svn.sourcefo...ries/groovyBC/.
and put it into my run folder. When I compile it I get the following error:
root@chrisilinux:~/OpenFOAM/OpenFOAM-1.6.x/lib/linuxGccDPOpt/groovyBC# wmake libso
wmakeLnInclude: linking include files to ./lnInclude
make: *** Keine Regel vorhanden, um das Target »PatchValueExpressionDriver.dep«,
benötigt von »Make/linuxGccDPOpt/dependencies«, zu erstellen. Schluss.
I yet tried compiling with out coomented groovyBCPointPatchFields.C, but it did not help.
Can you help me compilling groovyBC?
Thanks in advance.
You ned to install "svn" if it isnt already there.
Then go to a location of your choice, eg run/user_apps or whatever and paste the following line in the console
After svn did its job there should be a ne folder, go with the shell to the appropirate folder (where there is a subfolder "make") and enter
"wclean" and than "wmake libso". Should work :D
If there comes an error just post it here.
Currently i have no OpenFOAM installed (or any linux) but i survived installing groovyBC ;)
Thank you erklaerbaer!!
Dann kann ich jetzt mal versuchen damit zu arbeiten.
Now I can use groovyBC!!
|All times are GMT -4. The time now is 05:33.|