|
[Sponsors] |
|
March 10, 2010, 01:14 |
A Problem
|
#1 |
Member
Mohammad Zakerzadeh
Join Date: Dec 2009
Location: Aachen, Germany
Posts: 40
Rep Power: 16 |
Dear foamers!
I have a problem when I using Funky to set a complicated fields .my profile is as below: funkySetFields -time 0 -field alpha1 -expression 1 -condition "pos().y-1e-9-7.5e-9*exp((pow(pos().x-15e-9,10)+1)*log(1-pow((pos().x-15e-9)/7.5e-9,2)))<=0" but I think that this module have some problem with power function. I have this error: Putting "1" into field alpha1 at t = "0" if condition "pos().y-1e-9-7.5e-9*exp((pow(pos().x-15e-9,10)+1)*log(1-pow((pos().x-15e-9)/7.5e-9,2)))<=0" is true
#0 Foam::error:rintStack(Foam::Ostream&) in "/home/Zakerzadeh/OpenFOAM/OpenFOAM-1.6/lib/linuxGccDPOpt/libOpenFOAM.so" #1 Foam::sigFpe::sigFpeHandler(int) in "/home/Zakerzadeh/OpenFOAM/OpenFOAM-1.6/lib/linuxGccDPOpt/libOpenFOAM.so" #2 Uninterpreted: #3 log in "/lib/libm.so.6" #4 Foam::log(Foam::Field<double>&, Foam::UList<double> const&) in "/home/Zakerzadeh/OpenFOAM/OpenFOAM-1.6/lib/linuxGccDPOpt/libOpenFOAM.so" #5 Foam::tmp<Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> > Foam::log<Foam::fvPatchField, Foam::volMesh>(Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const&) in "/home/Zakerzadeh/OpenFOAM/Zakerzadeh-1.6/applications/bin/linuxGccDPOpt/funkySetFields" #6 .L21360 at ValueExpressionParser.C:0 #7 ValueExpressionDriver:arse(std::string const&) in "/home/Zakerzadeh/OpenFOAM/Zakerzadeh-1.6/applications/bin/linuxGccDPOpt/funkySetFields" #8 doAnExpression(Foam::fvMesh const&, Foam::word const&, Foam::string const&, Foam::string const&, Foam::Time const&, bool, bool, bool, Foam::dimensionSet const&, bool, Foam::List<Foam::word> const&) in "/home/Zakerzadeh/OpenFOAM/Zakerzadeh-1.6/applications/bin/linuxGccDPOpt/funkySetFields" #9 main in "/home/Zakerzadeh/OpenFOAM/Zakerzadeh-1.6/applications/bin/linuxGccDPOpt/funkySetFields" #10 __libc_start_main in "/lib/libc.so.6" #11 Foam::regIOobject::writeObject(Foam::IOstream::str eamFormat, Foam::IOstream::versionNumber, Foam::IOstream::compressionType) const in "/home/Zakerzadeh/OpenFOAM/Zakerzadeh-1.6/applications/bin/linuxGccDPOpt/funkySetFields" Floating point exception Is there anyone have any idea about it. Sincerely |
|
March 10, 2010, 03:44 |
|
#2 |
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,900
Rep Power: 37 |
According to error #3 it is due to the log-function. So make sure that you are not evaluating log(r), with r<=0.
Best regards, Niels |
|
March 10, 2010, 04:05 |
|
#3 |
Member
Mohammad Zakerzadeh
Join Date: Dec 2009
Location: Aachen, Germany
Posts: 40
Rep Power: 16 |
Yes,you are right!
But when I have this problem unless I decrease the power to 2 or 1. I test an easier case with just power term . Its better to test this case . I believe that this program have some problems with power.I appreciate if you have any suggestion about it? Sincerely |
|
March 15, 2010, 06:07 |
|
#4 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
If you really feel that there is a bug in FSF report it at https://sourceforge.net/apps/mantisb...e_status_id=-2 Bernhard |
||
May 7, 2010, 07:00 |
|
#5 | |
New Member
C.Z.
Join Date: May 2010
Posts: 4
Rep Power: 16 |
I'm trying to install funkySetFields (v1.6) on OF-1.6, but i get this error in "Allwmake" :
Quote:
Thanks in advance! |
||
May 10, 2010, 05:24 |
|
#6 |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Something seems to be fundamentally wrong with your OF installation (there seem to be at least two libraries missing). Have you ever successfully compiled another third-party OF-utility? Could you post the stuff just before the error messages start?
|
|
May 17, 2010, 09:20 |
|
#7 | |
New Member
C.Z.
Join Date: May 2010
Posts: 4
Rep Power: 16 |
Quote:
No, i did not even try to compile any OF-utility before. But i realised, that i was trying to install the funkySetFields-Tool from the POSTprocressing-directory. I don't know if that made any difference. Anyway, now i tried to install it from the PREprocessing directory and got these lines : Code:
hiwi@wmpc05:~/OpenFOAM/OpenFOAM-1.6/applications/utilities/preProcessing/FunkySetFields> ./Allwmake + wmake funkySetFields Making dependency list for source file ValueExpressionParser.C Making dependency list for source file ValueExpressionLexer.C Making dependency list for source file ValueExpressionDriver.C Making dependency list for source file funkySetFields.C SOURCE=ValueExpressionParser.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -IMake/linux64GccDPOpt -I/home/HiWi/OpenFOAM/OpenFOAM-1.6/src/finiteVolume/lnInclude -I/home/HiWi/OpenFOAM/OpenFOAM-1.6/src/meshTools/lnInclude -IlnInclude -I. -I/home/HiWi/OpenFOAM/OpenFOAM-1.6/src/OpenFOAM/lnInclude -I/home/HiWi/OpenFOAM/OpenFOAM-1.6/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/ValueExpressionParser.o In file included from location.hh:44, from ValueExpressionParser.tab.hh:65, from ValueExpressionParser.tab.cc:68: position.hh: In function ‘bool ve::operator==(const ve::position&, const ve::position&)’: position.hh:136: warning: suggest parentheses around && within || ValueExpressionParser.tab.cc: In member function ‘unsigned char ve::ValueExpressionParser::yytranslate_(int)’: ValueExpressionParser.tab.cc:3207: warning: use of old-style cast SOURCE=ValueExpressionLexer.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -IMake/linux64GccDPOpt -I/home/HiWi/OpenFOAM/OpenFOAM-1.6/src/finiteVolume/lnInclude -I/home/HiWi/OpenFOAM/OpenFOAM-1.6/src/meshTools/lnInclude -IlnInclude -I. -I/home/HiWi/OpenFOAM/OpenFOAM-1.6/src/OpenFOAM/lnInclude -I/home/HiWi/OpenFOAM/OpenFOAM-1.6/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/ValueExpressionLexer.o lex.ve.c:363: warning: use of old-style cast lex.ve.c:433: warning: use of old-style cast lex.ve.c:433: warning: use of old-style cast In file included from location.hh:44, from ValueExpressionParser.tab.hh:65, from ValueExpressionDriver.H:14, from ValueExpressionLexer.ll:3: position.hh: In function ‘bool ve::operator==(const ve::position&, const ve::position&)’: position.hh:136: warning: suggest parentheses around && within || lex.ve.c: In function ‘int velex(ve::ValueExpressionParser::semantic_type*, ve::location*, ValueExpressionDriver&)’: lex.ve.c:8888: warning: use of old-style cast lex.ve.c:8888: warning: use of old-style cast lex.ve.c:8905: warning: use of old-style cast lex.ve.c:8918: warning: use of old-style cast lex.ve.c:9368: warning: use of old-style cast lex.ve.c: In function ‘int yy_get_next_buffer()’: lex.ve.c:9547: warning: use of old-style cast lex.ve.c:9570: warning: use of old-style cast lex.ve.c:9583: warning: use of old-style cast lex.ve.c:9583: warning: use of old-style cast lex.ve.c:9604: warning: use of old-style cast lex.ve.c:9604: warning: use of old-style cast lex.ve.c:9629: warning: use of old-style cast lex.ve.c:9632: warning: use of old-style cast lex.ve.c:9632: warning: use of old-style cast lex.ve.c: In function ‘yy_state_type yy_get_previous_state()’: lex.ve.c:9667: warning: use of old-style cast lex.ve.c:9667: warning: use of old-style cast lex.ve.c: In function ‘int yyinput()’: lex.ve.c:9785: warning: use of old-style cast lex.ve.c: In function ‘yy_buffer_state* ve_create_buffer(FILE*, int)’: lex.ve.c:9884: warning: use of old-style cast lex.ve.c:9893: warning: use of old-style cast lex.ve.c: In function ‘void ve_delete_buffer(yy_buffer_state*)’: lex.ve.c:9919: warning: use of old-style cast lex.ve.c:9922: warning: use of old-style cast lex.ve.c:9924: warning: use of old-style cast lex.ve.c: In function ‘void veensure_buffer_stack()’: lex.ve.c:10091: warning: use of old-style cast lex.ve.c:10111: warning: use of old-style cast lex.ve.c: In function ‘yy_buffer_state* ve_scan_buffer(char*, yy_size_t)’: lex.ve.c:10139: warning: use of old-style cast lex.ve.c: In function ‘yy_buffer_state* ve_scan_bytes(const char*, int)’: lex.ve.c:10192: warning: use of old-style cast lex.ve.c: In function ‘void yy_push_state(int)’: lex.ve.c:10228: warning: use of old-style cast lex.ve.c:10231: warning: use of old-style cast lex.ve.c:10231: warning: use of old-style cast lex.ve.c: In function ‘int yy_init_globals()’: lex.ve.c:10398: warning: use of old-style cast lex.ve.c:10411: warning: use of old-style cast lex.ve.c:10412: warning: use of old-style cast lex.ve.c: In function ‘void* vealloc(yy_size_t)’: lex.ve.c:10478: warning: use of old-style cast lex.ve.c: In function ‘void* verealloc(void*, yy_size_t)’: lex.ve.c:10490: warning: use of old-style cast lex.ve.c:10490: warning: use of old-style cast lex.ve.c: In function ‘void vefree(void*)’: lex.ve.c:10495: warning: use of old-style cast lex.ve.c: At global scope: lex.ve.c:10215: warning: ‘void yy_push_state(int)’ defined but not used lex.ve.c:10243: warning: ‘void yy_pop_state()’ defined but not used lex.ve.c:10255: warning: ‘int yy_top_state()’ defined but not used SOURCE=ValueExpressionDriver.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -IMake/linux64GccDPOpt -I/home/HiWi/OpenFOAM/OpenFOAM-1.6/src/finiteVolume/lnInclude -I/home/HiWi/OpenFOAM/OpenFOAM-1.6/src/meshTools/lnInclude -IlnInclude -I. -I/home/HiWi/OpenFOAM/OpenFOAM-1.6/src/OpenFOAM/lnInclude -I/home/HiWi/OpenFOAM/OpenFOAM-1.6/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/ValueExpressionDriver.o In file included from location.hh:44, from ValueExpressionParser.tab.hh:65, from ValueExpressionDriver.H:14, from ValueExpressionDriver.C:3: position.hh: In function ‘bool ve::operator==(const ve::position&, const ve::position&)’: position.hh:136: warning: suggest parentheses around && within || SOURCE=funkySetFields.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -IMake/linux64GccDPOpt -I/home/HiWi/OpenFOAM/OpenFOAM-1.6/src/finiteVolume/lnInclude -I/home/HiWi/OpenFOAM/OpenFOAM-1.6/src/meshTools/lnInclude -IlnInclude -I. -I/home/HiWi/OpenFOAM/OpenFOAM-1.6/src/OpenFOAM/lnInclude -I/home/HiWi/OpenFOAM/OpenFOAM-1.6/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/funkySetFields.o In file included from location.hh:44, from ValueExpressionParser.tab.hh:65, from ValueExpressionDriver.H:14, from funkySetFields.C:41: position.hh: In function ‘bool ve::operator==(const ve::position&, const ve::position&)’: position.hh:136: warning: suggest parentheses around && within || g++ -m64 -Dlinux64 -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -IMake/linux64GccDPOpt -I/home/HiWi/OpenFOAM/OpenFOAM-1.6/src/finiteVolume/lnInclude -I/home/HiWi/OpenFOAM/OpenFOAM-1.6/src/meshTools/lnInclude -IlnInclude -I. -I/home/HiWi/OpenFOAM/OpenFOAM-1.6/src/OpenFOAM/lnInclude -I/home/HiWi/OpenFOAM/OpenFOAM-1.6/src/OSspecific/POSIX/lnInclude -fPIC Make/linux64GccDPOpt/ValueExpressionParser.o Make/linux64GccDPOpt/ValueExpressionLexer.o Make/linux64GccDPOpt/ValueExpressionDriver.o Make/linux64GccDPOpt/funkySetFields.o -L/home/HiWi/OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOpt \ -lfiniteVolume -lmeshTools -lOpenFOAM -liberty -ldl -lm -o /home/HiWi/OpenFOAM/hiwi-1.6/applications/bin/linux64GccDPOpt/funkySetFields /usr/bin/ld: cannot open output file /home/HiWi/OpenFOAM/hiwi-1.6/applications/bin/linux64GccDPOpt/funkySetFields: Permission denied collect2: ld returned 1 exit status make: *** [/home/HiWi/OpenFOAM/hiwi-1.6/applications/bin/linux64GccDPOpt/funkySetFields] Fehler 1 Thanks. Last edited by querdynamik; May 18, 2010 at 04:52. |
||
May 18, 2010, 05:48 |
|
#8 | ||
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
Quote:
Bernhard |
|||
May 18, 2010, 06:56 |
|
#9 | |
New Member
C.Z.
Join Date: May 2010
Posts: 4
Rep Power: 16 |
Quote:
Now it compiled without errors. Thank you very much, again ! |
||
March 12, 2010, 09:13 |
|
#10 |
Member
G B
Join Date: Mar 2010
Posts: 37
Rep Power: 16 |
This is very embarassing! What had worked previously with OF-1.6, now is not working with OF-1.6.x. I followed my steps but now im getting this error:
Code:
position.hh: In function ‘bool ve::operator==(const ve::position&, const ve::position&)’: position.hh:136: warning: suggest parentheses around ‘&&’ within ‘||’ ValueExpressionDriver.C: In member function ‘Foam::surfaceScalarField* ValueExpressionDriver::makeAreaField()’: ValueExpressionDriver.C:462: error: call of overloaded ‘GeometricField(Foam::IOobject, const Foam::fvMesh&, int)’ is ambiguous /home/gustavo/OpenFOAM/OpenFOAM-1.6.x/src/OpenFOAM/lnInclude/GeometricField.C:421: note: candidates are: Foam::GeometricField<Type, PatchField, GeoMesh>::GeometricField(const Foam::IOobject&, const typename GeoMesh::Mesh&, const Foam::dictionary&) [with Type = double, PatchField = Foam::fvsPatchField, GeoMesh = Foam::surfaceMesh] /home/gustavo/OpenFOAM/OpenFOAM-1.6.x/src/OpenFOAM/lnInclude/GeometricField.C:257: 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::fvsPatchField, GeoMesh = Foam::surfaceMesh] ValueExpressionDriver.C: In member function ‘Foam::volScalarField* ValueExpressionDriver::makeVolumeField()’: ValueExpressionDriver.C:482: error: call of overloaded ‘GeometricField(Foam::IOobject, const Foam::fvMesh&, int)’ is ambiguous /home/gustavo/OpenFOAM/OpenFOAM-1.6.x/src/OpenFOAM/lnInclude/GeometricField.C:421: 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/gustavo/OpenFOAM/OpenFOAM-1.6.x/src/OpenFOAM/lnInclude/GeometricField.C:257: 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::makeDistanceField()’: ValueExpressionDriver.C:506: error: call of overloaded ‘GeometricField(Foam::IOobject, const Foam::fvMesh&, int)’ is ambiguous /home/gustavo/OpenFOAM/OpenFOAM-1.6.x/src/OpenFOAM/lnInclude/GeometricField.C:421: 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/gustavo/OpenFOAM/OpenFOAM-1.6.x/src/OpenFOAM/lnInclude/GeometricField.C:257: 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/gustavo/OpenFOAM/OpenFOAM-1.6.x/src/OpenFOAM/lnInclude/GeometricField.C:421: 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/gustavo/OpenFOAM/OpenFOAM-1.6.x/src/OpenFOAM/lnInclude/GeometricField.C:257: 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] Error 1 |
|
March 12, 2010, 12:30 |
|
#11 |
Member
G B
Join Date: Mar 2010
Posts: 37
Rep Power: 16 |
I do not know what i did, but it is working now. Thanks all.
|
|
May 10, 2010, 17:06 |
|
#12 | |
Member
Join Date: Nov 2009
Posts: 48
Rep Power: 16 |
Tx man. this message is very useful for such beginner like me
Quote:
|
||
April 14, 2011, 18:17 |
|
#13 |
New Member
Join Date: Oct 2010
Posts: 27
Rep Power: 15 |
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, 16:56 |
|
#14 | |
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, 17:47 |
|
#15 | |
New Member
Join Date: Oct 2010
Posts: 27
Rep Power: 15 |
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, 04:35 |
|
#16 | ||
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
Quote:
|
|||
April 20, 2011, 18:44 |
|
#17 | |
New Member
Join Date: Oct 2010
Posts: 27
Rep Power: 15 |
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, 04:29 |
|
#18 | ||
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
Quote:
|
|||
April 21, 2011, 15:42 |
|
#19 |
New Member
Join Date: Oct 2010
Posts: 27
Rep Power: 15 |
||
June 17, 2011, 17:51 |
|
#20 |
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 |
|
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 11:58 |
[foam-extend.org] problem when installing foam-extend-1.6 | Thomas pan | OpenFOAM Installation | 7 | September 9, 2015 21:53 |
Install OF 1.6.ext on Arch based distribution | miro2000 | OpenFOAM Installation | 4 | October 9, 2013 14:39 |
[swak4Foam] installing funkySetFields | igo | OpenFOAM Community Contributions | 1 | November 20, 2012 20:16 |
[swak4Foam] installing funkySetFields utility for OpenFOAM 1.4.1 | ozie | OpenFOAM Community Contributions | 8 | September 8, 2011 11:16 |