CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Community Contributions

[swak4Foam] 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 Running funkySetFields
  #1
New Member
 
Sara Schairer
Join Date: Mar 2009
Posts: 26
Rep Power: 10
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: 11
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: 10
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: 10
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: 10
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: 11
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: 7
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: 4,034
Rep Power: 43
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: 7
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: 4,034
Rep Power: 43
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: 7
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
Foam Extend 3.2 in ubuntu 16.04 LTS JMosiezny OpenFOAM Installation 15 December 9, 2017 09:20
Problem in running coarse mesh(on the other hand fine mesh is running) ashokmoravaneni OpenFOAM 7 July 17, 2017 04:56
[swak4Foam] how to use funkySetFields function in muliregion case bryant_k OpenFOAM Community Contributions 12 August 1, 2016 04:40
[swak4Foam] groovyBC and funkySetFields married and got a kid named swak4Foam gschaider OpenFOAM Community Contributions 164 January 13, 2015 03:52
[swak4Foam] funkySetFields and funkySetBoundaryFields zxj160 OpenFOAM Community Contributions 14 October 3, 2013 12:52


All times are GMT -4. The time now is 03:28.