|
[Sponsors] |
November 13, 2008, 03:51 |
Running funkySetFields
|
#1 |
New Member
Sara Schairer
Join Date: Mar 2009
Posts: 26
Rep Power: 17 |
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 |
|
November 13, 2008, 05:53 |
Hi Sara
Just a small questi
|
#2 |
Senior Member
Join Date: Mar 2009
Posts: 248
Rep Power: 18 |
Hi Sara
Just a small question before we go into details : Did you compile it :-) Kind Regards Jaswinder |
|
November 13, 2008, 19:53 |
Ehm, nope, I didn't. Because I
|
#3 |
New Member
Sara Schairer
Join Date: Mar 2009
Posts: 26
Rep Power: 17 |
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 |
|
November 14, 2008, 01:34 |
Ok
I got it. Thanks ;)
|
#4 |
New Member
Sara Schairer
Join Date: Mar 2009
Posts: 26
Rep Power: 17 |
Ok
I got it. Thanks ;) |
|
November 14, 2008, 02:59 |
Hi
Now funkySetFields is comp
|
#5 |
New Member
Sara Schairer
Join Date: Mar 2009
Posts: 26
Rep Power: 17 |
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 |
|
November 14, 2008, 03:34 |
Hi Sara
Good Morning
Y
|
#6 |
Senior Member
Join Date: Mar 2009
Posts: 248
Rep Power: 18 |
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 |
|
October 3, 2012, 10:05 |
|
#7 |
Member
Sagun Tripathi
Join Date: Aug 2012
Location: Amherst, USA
Posts: 78
Rep Power: 14 |
Hello Sara,
I'm facing the same problem: command not found. How did you compile it? Thanks, Sagun |
|
October 3, 2012, 10:29 |
|
#8 |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
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 |
|
October 3, 2012, 10:43 |
|
#9 |
Member
Sagun Tripathi
Join Date: Aug 2012
Location: Amherst, USA
Posts: 78
Rep Power: 14 |
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 |
|
October 3, 2012, 10:56 |
|
#10 | ||
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
Quote:
__________________
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 |
|||
October 3, 2012, 11:08 |
|
#11 |
Member
Sagun Tripathi
Join Date: Aug 2012
Location: Amherst, USA
Posts: 78
Rep Power: 14 |
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 |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[swak4Foam] groovyBC and funkySetFields married and got a kid named swak4Foam | gschaider | OpenFOAM Community Contributions | 169 | August 10, 2023 10:01 |
[swak4Foam] how to use funkySetFields function in muliregion case | bryant_k | OpenFOAM Community Contributions | 15 | October 15, 2021 03:50 |
[swak4Foam] funkySetFields and funkySetBoundaryFields | zxj160 | OpenFOAM Community Contributions | 19 | February 14, 2018 20:07 |
[foam-extend.org] 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 05:56 |