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). |
Thanks
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 |
1 Attachment(s)
I have also problems with compiling the funkySetField getting similar errors to kel85uk's:
Code:
ValueExpressionDriver.C: In member function ‘Foam::volScalarField* ValueExpressionDriver::makeDistanceField()’: The complete error log you can find in the attached makelog.txt file. Hoping for help :-) Regards, |
Quote:
|
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? |
Quote:
Bernhard |
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. |
Quote:
Bottom line: fpos is still there. I f###ed up average. I'll fix it Bernhard |
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:
|
Quote:
|
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 |
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 |
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 |
Quote:
Quote:
|
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 |
Quote:
Quote:
|
Quote:
It woks! Thank you Bernhard, and sorry for the waist of your time! |
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 |
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 |
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 |
All times are GMT -4. The time now is 17:11. |