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

[swak4Foam] installing funkySetFields

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 10, 2010, 01:14
Default A Problem
  #1
Member
 
Mohammad Zakerzadeh
Join Date: Dec 2009
Location: Aachen, Germany
Posts: 40
Rep Power: 16
moh1367 is on a distinguished road
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
moh1367 is offline   Reply With Quote

Old   March 10, 2010, 03:44
Default
  #2
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,900
Rep Power: 37
ngj will become famous soon enoughngj will become famous soon enough
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
ngj is offline   Reply With Quote

Old   March 10, 2010, 04:05
Default
  #3
Member
 
Mohammad Zakerzadeh
Join Date: Dec 2009
Location: Aachen, Germany
Posts: 40
Rep Power: 16
moh1367 is on a distinguished road
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
moh1367 is offline   Reply With Quote

Old   March 15, 2010, 06:07
Default
  #4
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by moh1367 View Post
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?
The argument values are passed to the OF::log. One guess would be that for your expression pow(xxx,10) the xxx is too large. Use FSF to write out xxx on its own and have a look at the values.

If you really feel that there is a bug in FSF report it at
https://sourceforge.net/apps/mantisb...e_status_id=-2

Bernhard
gschaider is offline   Reply With Quote

Old   May 7, 2010, 07:00
Default
  #5
New Member
 
C.Z.
Join Date: May 2010
Posts: 4
Rep Power: 16
querdynamik is on a distinguished road
I'm trying to install funkySetFields (v1.6) on OF-1.6, but i get this error in "Allwmake" :

Quote:
....
/home/HiWi/OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOpt/libfiniteVolume.so: undefined reference to `Foam::reduce(double&, Foam::sumOp<double> const&)'
/home/HiWi/OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOpt/libmeshTools.so: undefined reference to `Foam::triSurface::~triSurface()'
/home/HiWi/OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOpt/libfiniteVolume.so: undefined reference to `Foam::triSurface::~triSurface()'
/home/HiWi/OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOpt/libmeshTools.so: undefined reference to `Foam::triSurface::markZones(Foam::List<bool> const&, Foam::List<int>&) const'
/home/HiWi/OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOpt/libmeshTools.so: undefined reference to `Foam::triSurface:perator=(Foam::triSurface const&)'
/home/HiWi/OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOpt/libmeshTools.so: undefined reference to `Foam::triSurface::edgeOwner() const'
/home/HiWi/OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOpt/libmeshTools.so: undefined reference to `Foam::triSurface::triSurface()'
/home/HiWi/OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOpt/libmeshTools.so: undefined reference to `Foam::triSurface::triSurface(Foam::List<Foam::lab elledTri> const&, Foam::List<Foam::geometricSurfacePatch> const&, Foam::Field<Foam::Vector<double> > const&)'
/home/HiWi/OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOpt/libOpenFOAM.so: undefined reference to `Foam::Pstream::init(int&, char**&)'
/home/HiWi/OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOpt/libmeshTools.so: undefined reference to `Foam::triSurface::triSurface(Foam::triSurface const&)'
/home/HiWi/OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOpt/libmeshTools.so: undefined reference to `Foam::decompositionMethod::typeName'
/home/HiWi/OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOpt/libmeshTools.so: undefined reference to `Foam::triSurface::clearOut()'
/home/HiWi/OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOpt/libOpenFOAM.so: undefined reference to `Foam::Pstream::addValidParOptions(Foam::HashTable <Foam::string, Foam::word, Foam::string::hash>&)'
collect2: ld returned 1 exit status
make: *** [/home/HiWi/OpenFOAM/hiwi-1.6/applications/bin/linux64GccDPOpt/funkySetFields] error 1
Can someone help me out and tell what the problem might be?

Thanks in advance!
querdynamik is offline   Reply With Quote

Old   May 10, 2010, 05:24
Default
  #6
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by querdynamik View Post
I'm trying to install funkySetFields (v1.6) on OF-1.6, but i get this error in "Allwmake" :

Can someone help me out and tell what the problem might be?

Thanks in advance!
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?
gschaider is offline   Reply With Quote

Old   May 17, 2010, 09:20
Default
  #7
New Member
 
C.Z.
Join Date: May 2010
Posts: 4
Rep Power: 16
querdynamik is on a distinguished road
Quote:
Originally Posted by gschaider View Post
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?
At first, thx for your answer and sorry for my late reply.

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
Looks like a completely different error to me. Hope u can help me anyway.
Thanks.

Last edited by querdynamik; May 18, 2010 at 04:52.
querdynamik is offline   Reply With Quote

Old   May 18, 2010, 05:48
Default
  #8
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by querdynamik View Post
At first, thx for your answer and sorry for my late reply.

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.
No.
Quote:
Originally Posted by querdynamik View Post
Anyway, now i tried to install it from the PREprocessing directory and got these lines :

Code:
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
Looks like a completely different error to me. Hope u can help me anyway.
Thanks.
Compilation runs alright (forget about the warnings). Your just not allowed to write the resulting binary. That is a OS/configuration problem

Bernhard
gschaider is offline   Reply With Quote

Old   May 18, 2010, 06:56
Default
  #9
New Member
 
C.Z.
Join Date: May 2010
Posts: 4
Rep Power: 16
querdynamik is on a distinguished road
Quote:
Originally Posted by gschaider View Post

Compilation runs alright (forget about the warnings). Your just not allowed to write the resulting binary. That is a OS/configuration problem

Bernhard
Ok, got it now. Simply had to give recursive write-permissions to that directory.
Now it compiled without errors.

Thank you very much, again !
querdynamik is offline   Reply With Quote

Old   March 12, 2010, 09:13
Default
  #10
Member
 
G B
Join Date: Mar 2010
Posts: 37
Rep Power: 16
Disco_Caine is on a distinguished road
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
Any ideas? Thanks!
Disco_Caine is offline   Reply With Quote

Old   March 12, 2010, 12:30
Default
  #11
Member
 
G B
Join Date: Mar 2010
Posts: 37
Rep Power: 16
Disco_Caine is on a distinguished road
I do not know what i did, but it is working now. Thanks all.
Disco_Caine is offline   Reply With Quote

Old   May 10, 2010, 17:06
Default
  #12
Member
 
Join Date: Nov 2009
Posts: 48
Rep Power: 16
farhagim is on a distinguished road
Tx man. this message is very useful for such beginner like me

Quote:
Originally Posted by Disco_Caine View Post
I have fixed my own problem, perhaps this is way too obvious for the almighty linux users, but i shall post it anyways, just in case another new guy runs into the same problem.

1) open up your terminal and make sure you are in the funkySetFields folder, (where the insertGenerated.sh is) and type this:

chmod +x insertGenerated.sh

2) then type:

./insertGenerated.sh

3) then, wmake.

And you are done with funkySetFields


P.S: sorry about the different fonts!
farhagim is offline   Reply With Quote

Old   April 14, 2011, 18:17
Default
  #13
New Member
 
Join Date: Oct 2010
Posts: 27
Rep Power: 15
albem is on a distinguished road
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
albem is offline   Reply With Quote

Old   April 15, 2011, 16:56
Default
  #14
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by albem View Post
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
Could you please verify whether the file theFiles.sh is actually there. If it is there then I suspect that it is one of these nice incompatibilities between the different shells (tcsh, bash (which differs according to dialects), tcsh). Try replacing in the scripts the line

. 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
gschaider is offline   Reply With Quote

Old   April 18, 2011, 17:47
Default
  #15
New Member
 
Join Date: Oct 2010
Posts: 27
Rep Power: 15
albem is on a distinguished road
Quote:
Originally Posted by gschaider View Post
Could you please verify whether the file theFiles.sh is actually there. If it is there then I suspect that it is one of these nice incompatibilities between the different shells (tcsh, bash (which differs according to dialects), tcsh). Try replacing in the scripts the line

. 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

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
albem is offline   Reply With Quote

Old   April 19, 2011, 04:35
Default
  #16
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by albem View Post
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?
Both vairants are equivalent for a sane person. But for some shells they are not. And the complain with "theFiles.sh not existing" although it exists.

Quote:
Originally Posted by albem View Post
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
Right. Just run them and see
gschaider is offline   Reply With Quote

Old   April 20, 2011, 18:44
Default
  #17
New Member
 
Join Date: Oct 2010
Posts: 27
Rep Power: 15
albem is on a distinguished road
Quote:
Originally Posted by gschaider View Post
Both vairants are equivalent for a sane person. But for some shells they are not. And the complain with "theFiles.sh not existing" although it exists.



Right. Just run them and see

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
albem is offline   Reply With Quote

Old   April 21, 2011, 04:29
Default
  #18
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by albem View Post
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?
Yep. Missing "s". Please check the error message

Quote:
Originally Posted by albem View Post
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
gschaider is offline   Reply With Quote

Old   April 21, 2011, 15:42
Default
  #19
New Member
 
Join Date: Oct 2010
Posts: 27
Rep Power: 15
albem is on a distinguished road
Quote:
Originally Posted by gschaider View Post
Yep. Missing "s". Please check the error message

It woks! Thank you Bernhard, and sorry for the waist of your time!
albem is offline   Reply With Quote

Old   June 17, 2011, 17:51
Default
  #20
Member
 
Naveen
Join Date: Feb 2010
Location: Los Angeles
Posts: 65
Rep Power: 16
vetnav is on a distinguished road
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
vetnav is offline   Reply With Quote

Reply

Tags
funkysetfields, installation, valueexpressionparser, wmake


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 Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 08:11.