Running funkySetFields
Hi
Probably a rather simple problem, but I still need some help. I have OpenFOAM 1.5. I downloaded funkySetFields which worked alright, but when I type the command "funkySetFields" just to see if it works I get: command not found. Why's that? I downloaded the directory into the /utilities/preProcessing directory. Do I have to put it somewhere else or is there just a step missing? Cheers, Sara |
Hi Sara
Just a small questi
Hi Sara
Just a small question before we go into details : Did you compile it :-) Kind Regards Jaswinder |
Ehm, nope, I didn't. Because I
Ehm, nope, I didn't. Because I didn't know I have to. As a matter of fact I also don't know how to do it.. could you please tell me?
Thanks so much, Sara |
Ok
I got it. Thanks ;)
Ok
I got it. Thanks ;) |
Hi
Now funkySetFields is comp
Hi
Now funkySetFields is compiled and should be ok. However I still have some problems. I tried to run funkySetFields. I wanted to set gamma to 1 in a certain area on the inlet of my geometry. I'm using interFoam. I think I did everything as explained in the wiki. But apparently something is wrong because I get these error messages: schairer@schairer-desktop:~/OpenFOAM/schairer-.5/run_execute/geometrieI_interFoam_tests1$ funkySetFields . geometrieI_interFoam_tests1 -time 0 -field gamma -expression 1 -condition "pos().x = 0 && pos().y >= 0.049 && pos().y <=>= 0.049 && pos().z <= 0.051" /*---------------------------------------------------------------------------*\ | ========= | | | \ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \ / O peration | Version: 1.5 | | \ / A nd | Web: http://www.OpenFOAM.org | | \/ M anipulation | | \*---------------------------------------------------------------------------*/ Usage: funkySetFields [-create] [-noZero] [-field <field>] [-condition <logical>] [-case dir] [-parallel] [-expression <expression>] [-keepPatches] [-dimension <dimension>] [-latestTime] [-valuePatches <list>] [-debugParser] [-time time] [-help] [-doc] [-srcDoc] Wrong number of arguments, expected 0 found 2 FOAM exiting schairer@schairer-desktop:~/OpenFOAM/schairer-.5/run_execute/geometrieI_interFoam_tests1$ Hope someone can help me figure this out. Cheers, Sara |
Hi Sara
Good Morning
Y
Hi Sara
Good Morning You are using OpenFOAM 1.5. It does not require to specify <root> <case> Try your expression like this : funkySetFields -time 0 -field gamma -expression 1 -condition "pos().x = 0 && pos().y >= 0.049 && pos().y <=>= 0.049 && pos().z <= 0.051" and it shall work. Hope that works else write back Kind Regards Jaswi |
Hello Sara,
I'm facing the same problem: command not found. How did you compile it? Thanks, Sagun |
Quote:
|
Hello,
I'm using OpenFoam version 2.1.1 on Linux 11.10. and so I installed swak4Foam instead of the traditional funkySetFields. Unfortunately, I don't seem to be able to find the compilation step on the page http://openfoamwiki.net/index.php/Contrib/swak4Foam Maybe its something very obvious and I'm missing it on account of my very limited knowledge of OpenFOAM and Linux. Another general question: What is meant by the directory of sources? I have swak4Foam installed in my opt/openfoam2011/src directory. Is that what the author is referring to? Thanks, Sagun |
Quote:
Quote:
|
Thank you so much for your help but I'm still getting the same error: command not found. :(
I'm trying to implement funkySetFields using a funkysetFieldsDict file in the system folder. Here is how the file looks like: FoamFile { version 2.0; format ascii; class dictionary; object funkySetFieldsDict; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // expressions ( InitialProfileVelocity { field U; variables "u_f=0.949;z0=0.1;K=0.41;zground=184.557;"; expression "vector(0,1,0)*(u_f/K)*log((pos().z-zground+z0)/z0)"; keepPatches 1; //keep the boundary conditions that were set before } ); Is there something wrong with the approach I have adopted to implement funkySetFields? Regards, Sagun |
All times are GMT -4. The time now is 02:27. |