|
[Sponsors] |
August 25, 2010, 12:55 |
|
#41 |
Member
G B
Join Date: Mar 2010
Posts: 37
Rep Power: 16 |
Oh yeah, youre totally right, its not a problem of FSF at all. But since i get the floating point exception error, i thought it would most helpful to post it here. Guess i should review my numerical methods.
Your first two solution are way over my level of expertise in openfoam, i will try changing different powers and the lower value idea. If not ill find another way to write the function. thanks again for your time bernhard! UPDATE: well this is weird, the pow function works with the individual values you get from running pos().z (i tried only the lowest and the highest). |
|
September 3, 2010, 00:38 |
Thanks
|
#42 | |
New Member
Kelvin Loh
Join Date: Mar 2009
Posts: 25
Rep Power: 17 |
Quote:
Hi Bernhard, Thanks very much for the tip. I downloaded the OF1.6 - Breeder version and it seems to compile now. Thanks again. -Kelvin |
||
October 18, 2010, 08:49 |
|
#43 |
Senior Member
Illya Shevchuk
Join Date: Aug 2009
Location: Darmstadt, Germany
Posts: 176
Rep Power: 17 |
I have also problems with compiling the funkySetField getting similar errors to kel85uk's:
Code:
ValueExpressionDriver.C: In member function ‘Foam::volScalarField* ValueExpressionDriver::makeDistanceField()’: ValueExpressionDriver.C:506: error: call of overloaded ‘GeometricField(Foam::IOobject, const Foam::fvMesh&, int)’ is ambiguous /home/shevchuk/OpenFOAM/OpenFOAM-1.7.x/src/OpenFOAM/lnInclude/GeometricField.C:420: note: candidates are: Foam::GeometricField<Type, PatchField, GeoMesh>::GeometricField(const Foam::IOobject&, const typename GeoMesh::Mesh&, const Foam::dictionary&) [with Type = double, PatchField = Foam::fvPatchField, GeoMesh = Foam::volMesh] /home/shevchuk/OpenFOAM/OpenFOAM-1.7.x/src/OpenFOAM/lnInclude/GeometricField.C:256: note: Foam::GeometricField<Type, PatchField, GeoMesh>::GeometricField(const Foam::IOobject&, const typename GeoMesh::Mesh&, const Foam::dimensioned<Type>&, const Foam::word&) [with Type = double, PatchField = Foam::fvPatchField, GeoMesh = Foam::volMesh] ValueExpressionDriver.C: In member function ‘Foam::volScalarField* ValueExpressionDriver::makeRDistanceField(const Foam::volVectorField&)’: ValueExpressionDriver.C:529: error: call of overloaded ‘GeometricField(Foam::IOobject, const Foam::fvMesh&, int)’ is ambiguous /home/shevchuk/OpenFOAM/OpenFOAM-1.7.x/src/OpenFOAM/lnInclude/GeometricField.C:420: note: candidates are: Foam::GeometricField<Type, PatchField, GeoMesh>::GeometricField(const Foam::IOobject&, const typename GeoMesh::Mesh&, const Foam::dictionary&) [with Type = double, PatchField = Foam::fvPatchField, GeoMesh = Foam::volMesh] /home/shevchuk/OpenFOAM/OpenFOAM-1.7.x/src/OpenFOAM/lnInclude/GeometricField.C:256: note: Foam::GeometricField<Type, PatchField, GeoMesh>::GeometricField(const Foam::IOobject&, const typename GeoMesh::Mesh&, const Foam::dimensioned<Type>&, const Foam::word&) [with Type = double, PatchField = Foam::fvPatchField, GeoMesh = Foam::volMesh] make: *** [Make/linux64GccDPOpt/ValueExpressionDriver.o] Fehler 1 The complete error log you can find in the attached makelog.txt file. Hoping for help :-) Regards, |
|
October 18, 2010, 10:13 |
|
#44 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
|
||
October 18, 2010, 10:32 |
|
#45 |
Senior Member
Illya Shevchuk
Join Date: Aug 2009
Location: Darmstadt, Germany
Posts: 176
Rep Power: 17 |
Code:
gcc (Debian 4.4.5-2) 4.4.5 Sorry, my fault. I've got the Breeder-1.5 version. I thought it would be the latest one, which you can download using the direct link to a .gz archive at http://openfoamwiki.net/index.php/Co...ields#Download , but it wasn't. For 1.6 you need svn. Is it possible to download the v1.6 without svn? |
|
October 19, 2010, 06:40 |
|
#46 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
Bernhard |
||
March 25, 2011, 04:59 |
|
#47 |
Senior Member
|
Hi Bernhard,
I am having the same problem with the latest funkySetFields (revision 1869). I'm using gcc4.4 or icpc11.1, bison 2.4, flex 2.5.31, and am getting ------------- with gcc4.4 ------------- ValueExpressionDriver.C:462: error: call of overloaded ‘GeometricField(Foam::IOobject, const Foam::fvMesh&, int)’ is ambiguous --------------- with icpc11.1 --------------- ValueExpressionDriver.C(451): error: more than one instance of constructor "Foam::GeometricField<Type, PatchField, GeoMesh>::GeometricField [with Type=Foam::scalar={Foam::doubleScalar={double}}, PatchField=Foam::fvsPatchField, GeoMesh=Foam::surfaceMesh]" matches the argument list: function "Foam::GeometricField<Type, PatchField, GeoMesh>::GeometricField(const Foam::IOobject &, const GeoMesh::Mesh &, const Foam::dimensioned<Type> &, const Foam::word &) [with Type=Foam::scalar={Foam::doubleScalar={double}}, PatchField=Foam::fvsPatchField, GeoMesh=Foam::surfaceMesh]" function "Foam::GeometricField<Type, PatchField, GeoMesh>::GeometricField(const Foam::IOobject &, const GeoMesh::Mesh &, const Foam::dictionary &) [with Type=Foam::scalar={Foam::doubleScalar={double}}, PatchField=Foam::fvsPatchField, GeoMesh=Foam::surfaceMesh]" argument types are: (Foam::IOobject, const Foam::fvMesh, int) Foam::surfaceScalarField *f=new Foam::surfaceScalarField( Note that I'm able to compile swak4Foam with both gcc and icpc, but the FSF in swak4Foam doesn't appear to support the fpos functionality, and I really need this for smoother initialization of multiphase interfaces. |
|
March 25, 2011, 08:17 |
|
#48 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
Bottom line: fpos is still there. I f###ed up average. I'll fix it Bernhard |
||
March 25, 2011, 08:20 |
|
#49 | |
Senior Member
|
Bernhard,
This is a different problem! The other thread is swak4Foam and the average/fpos problem. This thread is a compilation problem for the stand-alone FSF (I was going to revert back to the stand-alone version to temporarily solve my problem). Eric Quote:
|
||
March 25, 2011, 08:35 |
|
#50 |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
My wording was a bit wrong. Anyway. Just looking for the original thread because the problem was already fixed in swak. average is already called faceAverage. Should work with the sources you already have, I just never documented it (sum is now surfSum). Sorry
|
|
April 14, 2011, 19:17 |
|
#51 |
New Member
Join Date: Oct 2010
Posts: 27
Rep Power: 16 |
Hi
I just downloaded swake4Foam, I am using OpenFOAM 1.7, I put the directory in /home/albem/OpenFOAM/OpenFOAM-1.7.x/applications/utilities/preProcessing/swak4Foam and when I wrote "make install", there were some errors ./copySwakFilesToGlobal.sh ./copySwakFilesToGlobal.sh: line 3: .: theFiles.sh: file not found ./removeSwakFilesFromLocal.sh ./removeSwakFilesFromLocal.sh: line 3: .: theFiles.sh: file not found Any suggestions will be appreciated! thanks Alberto |
|
April 15, 2011, 17:56 |
|
#52 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
. theFiles.sh with . ./theFiles.sh or source ./theFiles.sh Apart from that I can't help you. My knowledge with shell-scripting (the Fortran of script languages) is very limited and I don't intend to extend it. The preferred way to install swak is as always with OpenFOAM ./Allwmake The Makefile is a convenience-thing that is nice if it works but I do not support it if it doesn't work (will accept fixes though). But thanks for the hint. I will discourage the use of "make install" in the README Bernhard |
||
April 18, 2011, 18:47 |
|
#53 | |
New Member
Join Date: Oct 2010
Posts: 27
Rep Power: 16 |
Quote:
Bernhard thanks for your prompt answer The file theFiles.sh is there, I do not understand what you wanted to say with Try replacing in the scripts the line . theFiles.sh with . ./theFiles.sh which scripts? I ran the ./Allwmake instruction and the result was '/home/albem/OpenFOAM/albem-1.7.x/lib/linuxGccDPOpt/libswak4FoamParsers.so' is up to date. '/home/albem/OpenFOAM/albem-1.7.x/lib/linuxGccDPOpt/libgroovyBC.so' is up to date. '/home/albem/OpenFOAM/albem-1.7.x/lib/linuxGccDPOpt/libswakFunctionObjects.so' is up to date. '/home/albem/OpenFOAM/albem-1.7.x/lib/linuxGccDPOpt/libsimpleFunctionObjects.so' is up to date. '/home/albem/OpenFOAM/albem-1.7.x/lib/linuxGccDPOpt/libsimpleSwakFunctionObjects.so' is up to date. '/home/albem/OpenFOAM/albem-1.7.x/lib/linuxGccDPOpt/libswakTopoSources.so' is up to date. '/home/albem/OpenFOAM/albem-1.7.x/lib/linuxGccDPOpt/libswakSourceFields.so' is up to date. '/home/albem/OpenFOAM/albem-1.7.x/lib/linuxGccDPOpt/libgroovyStandardBCs.so' is up to date. make: `/home/albem/OpenFOAM/albem-1.7.x/applications/bin/linuxGccDPOpt/funkySetFields' is up to date. make: `/home/albem/OpenFOAM/albem-1.7.x/applications/bin/linuxGccDPOpt/funkySetBoundaryField' is up to date. make: `/home/albem/OpenFOAM/albem-1.7.x/applications/bin/linuxGccDPOpt/replayTransientBC' is up to date. make: `/home/albem/OpenFOAM/albem-1.7.x/applications/bin/linuxGccDPOpt/funkyDoCalc' is up to date. This means that funkySetFields and funkySetBoundaryFilelds must work, am i right? thanks again Alberto |
||
April 19, 2011, 05:35 |
|
#54 | ||
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
Quote:
|
|||
April 20, 2011, 19:44 |
|
#55 | |
New Member
Join Date: Oct 2010
Posts: 27
Rep Power: 16 |
Quote:
Thank you Bernhard for your helpI am defining an extra force term in the N-S equations, for the moment I am defining this force using an analytical expression,and when I wrote in the terminal the command funkySetFields -field A123 -expression 'vector(-exp(-(pow(pos().x,2)+pow(pos().y,2))),0, 0)' -time 0 it works!, but, if I use a /system/funkySetFieldDict file which contains the following expressions ( A123 { field A123; //field initialise create true; expression “vector( -exp(-pow(pos().x,2)+pow(pos().y,2)),0, 0)”; //ring-shaped current condition “sqrt(pow(pos().x,2)+pow(pos().y,2))<=1.0”; } ); and then if I write in the terminal funkySetFields -time 0 the result is /*---------------------------------------------------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 1.7.x | | \\ / A nd | Web: www.OpenFOAM.com | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ Build : 1.7.x-a54150ce1198 Exec : funkySetFields -time 0 Date : Apr 20 2011 Time : 15:35:11 Host : acamapichtli PID : 6554 Case : /home/albem/OpenFOAM/albem-1.7.x/run/Poiseuille2D_Fnonu2 nProcs : 1 SigFpe : Enabling floating point exception trapping (FOAM_SIGFPE). // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // Create time Create mesh for time = 0 Time = 0 Using funkySetFieldsDict --> FOAM FATAL IO ERROR: cannot open file file: /home/albem/OpenFOAM/albem-1.7.x/run/Poiseuille2D_Fnonu2/system/funkySetFieldsDict at line 0. From function regIOobject::readStream() in file db/regIOobject/regIOobjectRead.C at line 61. FOAM exiting do you know what it could be wrong with the /system/funkySetFieldDict file? I would like to just modified the file for the analytical expression instead of using the commands in the terminal by the way I do not hoy to include the condition “sqrt(pow(pos().x,2)+pow(pos().y,2))<=1.0”; option in the command line terminal any idea? thanks in advance Alberto |
||
April 21, 2011, 05:29 |
|
#56 | ||
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
Quote:
|
|||
April 21, 2011, 16:42 |
|
#57 |
New Member
Join Date: Oct 2010
Posts: 27
Rep Power: 16 |
||
June 17, 2011, 18:51 |
|
#58 |
Member
Naveen
Join Date: Feb 2010
Location: Los Angeles
Posts: 65
Rep Power: 16 |
Hi
I just downloaded swake4Foam, I am using OpenFOAM 1.7 (Ubuntu Pack), I put the directory in opt/openfoam171/applications/utilities/preProcessing/ I went into opt/openfoam171/applications/utilities/preProcessing/swak4Foam and when I wrote "make install", there were some errors ./downloadSimpleFunctionObjects.sh Can't do this because this directory is under SVN-control ./Allwmake No simpleFuctionsObject existing. Press ENTER to continue compilation or abort and download it with the downloadSimpleFunctionObjects.sh script Can someone please tell me how to proceed Thank you |
|
June 17, 2011, 19:13 |
|
#59 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
Which version did you download and how? Please use that "make install" only if you want to install swak systemwide. Otherwise use a plain ./Allwmake that should install everything just for your user |
||
June 17, 2011, 19:25 |
|
#60 |
Member
Naveen
Join Date: Feb 2010
Location: Los Angeles
Posts: 65
Rep Power: 16 |
Hi Bernhard,
Thank you for the reply. Thatis so prompt. Is that directory opt/openfoam171/applications/utilities/preProcessing/ under SVN control like ther output suggests? I don't even know what is SVN control, when I run make install I think it automatically going under that control. To make sure I restarted the computer and tried it but still got the same error message. Which version did you download and how? If your question is regarding the swak4Foam. I downloaded it using the command given in http://openfoamwiki.net/index.php/Co...am#Downloading I have only one user account in my Ubuntu. Thank you |
|
Tags |
funkysetfields, installation, valueexpressionparser, wmake |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Frequently Asked Questions about Installing OpenFOAM | wyldckat | OpenFOAM Installation | 3 | November 14, 2023 12:58 |
[foam-extend.org] problem when installing foam-extend-1.6 | Thomas pan | OpenFOAM Installation | 7 | September 9, 2015 22:53 |
Install OF 1.6.ext on Arch based distribution | miro2000 | OpenFOAM Installation | 4 | October 9, 2013 15:39 |
[swak4Foam] installing funkySetFields | igo | OpenFOAM Community Contributions | 1 | November 20, 2012 21:16 |
[swak4Foam] installing funkySetFields utility for OpenFOAM 1.4.1 | ozie | OpenFOAM Community Contributions | 8 | September 8, 2011 12:16 |