CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Running, Solving & CFD

Running funkySetFields

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   November 13, 2008, 03:51
Default Hi Probably a rather simple p
  #1
New Member
 
Sara Schairer
Join Date: Mar 2009
Posts: 26
Rep Power: 8
sara is on a distinguished road
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
sara is offline   Reply With Quote

Old   November 13, 2008, 05:53
Default Hi Sara Just a small questi
  #2
Senior Member
 
Join Date: Mar 2009
Posts: 248
Rep Power: 9
jaswi is on a distinguished road
Hi Sara

Just a small question before we go into details :

Did you compile it :-)

Kind Regards
Jaswinder
jaswi is offline   Reply With Quote

Old   November 13, 2008, 19:53
Default Ehm, nope, I didn't. Because I
  #3
New Member
 
Sara Schairer
Join Date: Mar 2009
Posts: 26
Rep Power: 8
sara is on a distinguished road
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 is offline   Reply With Quote

Old   November 14, 2008, 01:34
Default Ok I got it. Thanks ;)
  #4
New Member
 
Sara Schairer
Join Date: Mar 2009
Posts: 26
Rep Power: 8
sara is on a distinguished road
Ok
I got it. Thanks ;)
sara is offline   Reply With Quote

Old   November 14, 2008, 02:59
Default Hi Now funkySetFields is comp
  #5
New Member
 
Sara Schairer
Join Date: Mar 2009
Posts: 26
Rep Power: 8
sara is on a distinguished road
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
sara is offline   Reply With Quote

Old   November 14, 2008, 03:34
Default Hi Sara Good Morning Y
  #6
Senior Member
 
Join Date: Mar 2009
Posts: 248
Rep Power: 9
jaswi is on a distinguished road
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
jaswi is offline   Reply With Quote

Old   October 3, 2012, 09:05
Default
  #7
Member
 
Sagun Tripathi
Join Date: Aug 2012
Location: Amherst, USA
Posts: 78
Rep Power: 5
Sagun is on a distinguished road
Hello Sara,

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

How did you compile it?

Thanks,
Sagun
Sagun is offline   Reply With Quote

Old   October 3, 2012, 09:29
Default
  #8
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,915
Rep Power: 40
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by Sagun View Post
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)
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   October 3, 2012, 09:43
Default
  #9
Member
 
Sagun Tripathi
Join Date: Aug 2012
Location: Amherst, USA
Posts: 78
Rep Power: 5
Sagun is on a distinguished road
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
Sagun is offline   Reply With Quote

Old   October 3, 2012, 09:56
Default
  #10
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,915
Rep Power: 40
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by Sagun View Post
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 View Post
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
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   October 3, 2012, 10:08
Default
  #11
Member
 
Sagun Tripathi
Join Date: Aug 2012
Location: Amherst, USA
Posts: 78
Rep Power: 5
Sagun is on a distinguished road
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
Sagun is offline   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
GroovyBC the dynamic cousin of funkySetFields that lives on the suburb of the mesh gschaider OpenFOAM 300 October 29, 2014 19:00
FunkySetFields for OF 141 mer OpenFOAM Pre-Processing 71 June 11, 2014 11:34
FunkySetFields Boundary conditions listmg OpenFOAM Pre-Processing 13 November 22, 2013 14:00
FunkySetFields dictionary gschaider OpenFOAM Running, Solving & CFD 14 December 3, 2008 22:13
FunkySetFields for cyclic bc zakifoam OpenFOAM Pre-Processing 1 December 18, 2007 08:24


All times are GMT -4. The time now is 06:10.