CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (http://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Running funkySetFields (http://www.cfd-online.com/Forums/openfoam-solving/58340-running-funkysetfields.html)

sara November 13, 2008 03:51

Hi Probably a rather simple p
 
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

jaswi November 13, 2008 05:53

Hi Sara Just a small questi
 
Hi Sara

Just a small question before we go into details :

Did you compile it :-)

Kind Regards
Jaswinder

sara November 13, 2008 19:53

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

sara November 14, 2008 01:34

Ok I got it. Thanks ;)
 
Ok
I got it. Thanks ;)

sara November 14, 2008 02:59

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

jaswi November 14, 2008 03:34

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

Sagun October 3, 2012 09:05

Hello Sara,

I'm facing the same problem: command not found.

How did you compile it?

Thanks,
Sagun

gschaider October 3, 2012 09:29

Quote:

Originally Posted by Sagun (Post 384718)
Hello Sara,

I'm facing the same problem: command not found.

How did you compile it?

Thanks,
Sagun

Compilation is described on the Wiki-page (depends on the version you're using - standalone or swak. But in both cases the process consists of one command)

Sagun October 3, 2012 09:43

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

gschaider October 3, 2012 09:56

Quote:

Originally Posted by Sagun (Post 384724)
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

How about point 2: Building (http://openfoamwiki.net/index.php/Co...4Foam#Building)

Quote:

Originally Posted by Sagun (Post 384724)
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?

The director you downloaded. In your case probably opt/openfoam2011/src/swak4Foam

Sagun October 3, 2012 10:08

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 13:22.