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

[Other] rheoTool compiling

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By wyldckat

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 10, 2018, 13:25
Default rheoTool compiling
  #1
Senior Member
 
A. Min
Join Date: Mar 2015
Posts: 308
Rep Power: 12
alimea is on a distinguished road
Hi

I want to compile rheoTool. my openFoam version is 2.3.1. But It gives me this error after some minutes:


constitutiveTwoPhaseMixture/constitutiveTwoPhaseMixture.C:93:5: error: no matching function for call to ‘Foam::twoPhaseMixture::twoPhaseMixture(const Mesh&, Foam::constitutiveTwoPhaseMixture&, const Foam::word&, const Foam::word&)’
)

What's the problem?

rheoTool is written based on openFoam 2.2.2 and 4.0.

Is it because of the version of my openFoam?
If yes, which version of openFoam should I install?

Thanks
alimea is offline   Reply With Quote

Old   April 15, 2018, 19:06
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quote:
Originally Posted by alimea View Post
rheoTool is written based on openFoam 2.2.2 and 4.0.

Is it because of the version of my openFoam?
If yes, which version of openFoam should I install?
Quick answers:
  1. Yes, the methods and classes gradually evolve between versions and change how interaction is done; in this case, either the class changed names or it now needs more or less input variables or it's the same number of input variables, but of different types.
  2. If possible, upgrade to OpenFOAM 4.1, which seems to be supported by "rheoTool".
alimea likes this.
__________________
wyldckat is offline   Reply With Quote

Old   May 14, 2019, 10:18
Default Error compiling rheoTool with of6
  #3
New Member
 
Dino
Join Date: Oct 2016
Posts: 2
Rep Power: 0
Snopx is on a distinguished road
I have download the RheoTool form the github and used the user guide from the same site to compile it. (https://github.com/fppimenta/rheoToo...user_guide.pdf)



I was using the OpenFOAM v6 as it was provided for rheoTool. I got this error:

Code:
g++ -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=64 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -O3  -DNoRepository -ftemplate-depth-100 -I/home/laganini/OpenFOAM/OpenFOAM-6/src/finiteVolume/lnInclude -I/home/laganini/OpenFOAM/OpenFOAM-6/src/meshTools/lnInclude -IlnInclude -I. -I/home/laganini/OpenFOAM/OpenFOAM-6/src/OpenFOAM/lnInclude -I/home/laganini/OpenFOAM/OpenFOAM-6/src/OSspecific/POSIX/lnInclude   -fPIC -c operators/blockOperators.C -o Make/linux64GccDPInt64Opt/operators/blockOperators.o
In file included from /home/laganini/OpenFOAM/OpenFOAM-6/src/OpenFOAM/lnInclude/List.H:309:0,
                 from /home/laganini/OpenFOAM/OpenFOAM-6/src/OpenFOAM/lnInclude/HashTable.C:30,
                 from /home/laganini/OpenFOAM/OpenFOAM-6/src/OpenFOAM/lnInclude/HashTable.H:566,
                 from /home/laganini/OpenFOAM/OpenFOAM-6/src/OpenFOAM/lnInclude/NamedEnum.H:38,
                 from /home/laganini/OpenFOAM/OpenFOAM-6/src/OpenFOAM/lnInclude/IOobject.H:79,
                 from /home/laganini/OpenFOAM/OpenFOAM-6/src/OpenFOAM/lnInclude/regIOobject.H:41,
                 from /home/laganini/OpenFOAM/OpenFOAM-6/src/OpenFOAM/lnInclude/GeometricField.H:42,
                 from /home/laganini/OpenFOAM/OpenFOAM-6/src/OpenFOAM/lnInclude/GeometricScalarField.H:38,
                 from /home/laganini/OpenFOAM/OpenFOAM-6/src/OpenFOAM/lnInclude/GeometricFields.H:34,
                 from /home/laganini/OpenFOAM/OpenFOAM-6/src/finiteVolume/lnInclude/volFields.H:37,
                 from operators/div.H:39,
                 from operators/blockOperators.H:39,
                 from operators/blockOperators.C:26:
/home/laganini/OpenFOAM/OpenFOAM-6/src/OpenFOAM/lnInclude/List.C: In instantiation of ‘Foam::List<T>::List(InputIterator, InputIterator) [with InputIterator = int; T = long int]’:
operators/div.C:147:20:   required from here
/home/laganini/OpenFOAM/OpenFOAM-6/src/OpenFOAM/lnInclude/List.C:211:39: error: no matching function for call to ‘distance(int&, int&)’
     List<T>(first, last, std::distance(first, last))
                          ~~~~~~~~~~~~~^~~~~~~~~~~~~
In file included from /usr/include/c++/7/bits/stl_algobase.h:66:0,
                 from /usr/include/c++/7/bits/char_traits.h:39,
                 from /usr/include/c++/7/string:40,
                 from /home/laganini/OpenFOAM/OpenFOAM-6/src/OpenFOAM/lnInclude/string.H:51,
                 from /home/laganini/OpenFOAM/OpenFOAM-6/src/OpenFOAM/lnInclude/word.H:42,
                 from /home/laganini/OpenFOAM/OpenFOAM-6/src/OpenFOAM/lnInclude/fileName.H:48,
                 from /home/laganini/OpenFOAM/OpenFOAM-6/src/OpenFOAM/lnInclude/IOobject.H:75,
                 from /home/laganini/OpenFOAM/OpenFOAM-6/src/OpenFOAM/lnInclude/regIOobject.H:41,
                 from /home/laganini/OpenFOAM/OpenFOAM-6/src/OpenFOAM/lnInclude/GeometricField.H:42,
                 from /home/laganini/OpenFOAM/OpenFOAM-6/src/OpenFOAM/lnInclude/GeometricScalarField.H:38,
                 from /home/laganini/OpenFOAM/OpenFOAM-6/src/OpenFOAM/lnInclude/GeometricFields.H:34,
                 from /home/laganini/OpenFOAM/OpenFOAM-6/src/finiteVolume/lnInclude/volFields.H:37,
                 from operators/div.H:39,
                 from operators/blockOperators.H:39,
                 from operators/blockOperators.C:26:
/usr/include/c++/7/bits/stl_iterator_base_funcs.h:138:5: note: candidate: template<class _InputIterator> typename std::iterator_traits<_Iterator>::difference_type std::distance(_InputIterator, _InputIterator)
     distance(_InputIterator __first, _InputIterator __last)
     ^~~~~~~~
/usr/include/c++/7/bits/stl_iterator_base_funcs.h:138:5: note:   template argument deduction/substitution failed:
/usr/include/c++/7/bits/stl_iterator_base_funcs.h: In substitution of ‘template<class _InputIterator> typename std::iterator_traits<_Iterator>::difference_type std::distance(_InputIterator, _InputIterator) [with _InputIterator = int]’:
/home/laganini/OpenFOAM/OpenFOAM-6/src/OpenFOAM/lnInclude/List.C:211:39:   required from ‘Foam::List<T>::List(InputIterator, InputIterator) [with InputIterator = int; T = long int]’
operators/div.C:147:20:   required from here
/usr/include/c++/7/bits/stl_iterator_base_funcs.h:138:5: error: no type named ‘difference_type’ in ‘struct std::iterator_traits<int>’
/home/laganini/OpenFOAM/OpenFOAM-6/wmake/rules/General/transform:25: recipe for target 'Make/linux64GccDPInt64Opt/operators/blockOperators.o' failed
make: *** [Make/linux64GccDPInt64Opt/operators/blockOperators.o] Error 1

Last edited by wyldckat; May 14, 2019 at 17:37. Reason: Added [CODE][/CODE] markers
Snopx is offline   Reply With Quote

Old   May 14, 2019, 17:41
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quick questions:
  1. Which Linux Distribution are you using?
  2. Which installation instructions did you follow for installing OpenFOAM 6?
  3. If you're not sure which installation instructions were used, then what do the following commands give you?
    Code:
    gcc --version
    g++ --version
I ask these questions in order to try and reproduce the same error.
__________________
wyldckat is offline   Reply With Quote

Old   May 15, 2019, 04:05
Default
  #5
New Member
 
Dino
Join Date: Oct 2016
Posts: 2
Rep Power: 0
Snopx is on a distinguished road
Thank you for your reply.



I am using Ubuntu 18.04.2 LTS, and both versions gcc and g++ are 7.4.0.



To install OpenFOAM v6, I was using instructions on the site (http://openfoamwiki.net/index.php/Installation/Linux/OpenFOAM-6/Ubuntu) OpenFOAMWiki under the title for Ubuntu 18.04. and followed all steps required for installation. Compilation went without errors.



One more thing; I tried to compile with OpenFOAM v5.x producing the same error. I tried to compile with foam-extend 4.0 the rheoTool provided for the foam-extend version it passed without any errors.
Snopx is offline   Reply With Quote

Old   May 11, 2021, 06:28
Default
  #6
Senior Member
 
A. Min
Join Date: Mar 2015
Posts: 308
Rep Power: 12
alimea is on a distinguished road
Hi foamers

I want to install rheoTool V5 on OF-7 (ubuntu 20.04), but I faced with the following error, immediately after I compiled the rheoTool using ./Allwmake.
Code:
perators/div.C:147:20:   required from here
/home/ali/OpenFOAM/OpenFOAM-7/src/OpenFOAM/lnInclude/List.C:211:39: error: no matching function for call to ‘distance(int&, int&)’
  211 |     List<T>(first, last, std::distance(first, last))
      |                          ~~~~~~~~~~~~~^~~~~~~~~~~~~
the answer of the gcc --version command:

Code:
gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
the answer of the g++ --version command:

Code:
g++ (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
I installed OpenFOAM-7 according to the following webpage:

HTML Code:
https://openfoamwiki.net/index.php/Installation/Linux/OpenFOAM-7/Ubuntu/20.04
Thanks
alimea is offline   Reply With Quote

Old   November 25, 2023, 02:41
Default Rheotool compilation error
  #7
New Member
 
Ra Go M
Join Date: Nov 2023
Posts: 1
Rep Power: 0
ragom is on a distinguished road
Quote:
Originally Posted by Snopx View Post
I have download the RheoTool form the github and used the user guide from the same site to compile it. (https://github.com/fppimenta/rheoToo...user_guide.pdf)



I was using the OpenFOAM v6 as it was provided for rheoTool. I got this error:

Code:
g++ -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=64 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -O3  -DNoRepository -ftemplate-depth-100 -I/home/laganini/OpenFOAM/OpenFOAM-6/src/finiteVolume/lnInclude -I/home/laganini/OpenFOAM/OpenFOAM-6/src/meshTools/lnInclude -IlnInclude -I. -I/home/laganini/OpenFOAM/OpenFOAM-6/src/OpenFOAM/lnInclude -I/home/laganini/OpenFOAM/OpenFOAM-6/src/OSspecific/POSIX/lnInclude   -fPIC -c operators/blockOperators.C -o Make/linux64GccDPInt64Opt/operators/blockOperators.o
In file included from /home/laganini/OpenFOAM/OpenFOAM-6/src/OpenFOAM/lnInclude/List.H:309:0,
                 from /home/laganini/OpenFOAM/OpenFOAM-6/src/OpenFOAM/lnInclude/HashTable.C:30,
                 from /home/laganini/OpenFOAM/OpenFOAM-6/src/OpenFOAM/lnInclude/HashTable.H:566,
                 from /home/laganini/OpenFOAM/OpenFOAM-6/src/OpenFOAM/lnInclude/NamedEnum.H:38,
                 from /home/laganini/OpenFOAM/OpenFOAM-6/src/OpenFOAM/lnInclude/IOobject.H:79,
                 from /home/laganini/OpenFOAM/OpenFOAM-6/src/OpenFOAM/lnInclude/regIOobject.H:41,
                 from /home/laganini/OpenFOAM/OpenFOAM-6/src/OpenFOAM/lnInclude/GeometricField.H:42,
                 from /home/laganini/OpenFOAM/OpenFOAM-6/src/OpenFOAM/lnInclude/GeometricScalarField.H:38,
                 from /home/laganini/OpenFOAM/OpenFOAM-6/src/OpenFOAM/lnInclude/GeometricFields.H:34,
                 from /home/laganini/OpenFOAM/OpenFOAM-6/src/finiteVolume/lnInclude/volFields.H:37,
                 from operators/div.H:39,
                 from operators/blockOperators.H:39,
                 from operators/blockOperators.C:26:
/home/laganini/OpenFOAM/OpenFOAM-6/src/OpenFOAM/lnInclude/List.C: In instantiation of ‘Foam::List<T>::List(InputIterator, InputIterator) [with InputIterator = int; T = long int]’:
operators/div.C:147:20:   required from here
/home/laganini/OpenFOAM/OpenFOAM-6/src/OpenFOAM/lnInclude/List.C:211:39: error: no matching function for call to ‘distance(int&, int&)’
     List<T>(first, last, std::distance(first, last))
                          ~~~~~~~~~~~~~^~~~~~~~~~~~~
In file included from /usr/include/c++/7/bits/stl_algobase.h:66:0,
                 from /usr/include/c++/7/bits/char_traits.h:39,
                 from /usr/include/c++/7/string:40,
                 from /home/laganini/OpenFOAM/OpenFOAM-6/src/OpenFOAM/lnInclude/string.H:51,
                 from /home/laganini/OpenFOAM/OpenFOAM-6/src/OpenFOAM/lnInclude/word.H:42,
                 from /home/laganini/OpenFOAM/OpenFOAM-6/src/OpenFOAM/lnInclude/fileName.H:48,
                 from /home/laganini/OpenFOAM/OpenFOAM-6/src/OpenFOAM/lnInclude/IOobject.H:75,
                 from /home/laganini/OpenFOAM/OpenFOAM-6/src/OpenFOAM/lnInclude/regIOobject.H:41,
                 from /home/laganini/OpenFOAM/OpenFOAM-6/src/OpenFOAM/lnInclude/GeometricField.H:42,
                 from /home/laganini/OpenFOAM/OpenFOAM-6/src/OpenFOAM/lnInclude/GeometricScalarField.H:38,
                 from /home/laganini/OpenFOAM/OpenFOAM-6/src/OpenFOAM/lnInclude/GeometricFields.H:34,
                 from /home/laganini/OpenFOAM/OpenFOAM-6/src/finiteVolume/lnInclude/volFields.H:37,
                 from operators/div.H:39,
                 from operators/blockOperators.H:39,
                 from operators/blockOperators.C:26:
/usr/include/c++/7/bits/stl_iterator_base_funcs.h:138:5: note: candidate: template<class _InputIterator> typename std::iterator_traits<_Iterator>::difference_type std::distance(_InputIterator, _InputIterator)
     distance(_InputIterator __first, _InputIterator __last)
     ^~~~~~~~
/usr/include/c++/7/bits/stl_iterator_base_funcs.h:138:5: note:   template argument deduction/substitution failed:
/usr/include/c++/7/bits/stl_iterator_base_funcs.h: In substitution of ‘template<class _InputIterator> typename std::iterator_traits<_Iterator>::difference_type std::distance(_InputIterator, _InputIterator) [with _InputIterator = int]’:
/home/laganini/OpenFOAM/OpenFOAM-6/src/OpenFOAM/lnInclude/List.C:211:39:   required from ‘Foam::List<T>::List(InputIterator, InputIterator) [with InputIterator = int; T = long int]’
operators/div.C:147:20:   required from here
/usr/include/c++/7/bits/stl_iterator_base_funcs.h:138:5: error: no type named ‘difference_type’ in ‘struct std::iterator_traits<int>’
/home/laganini/OpenFOAM/OpenFOAM-6/wmake/rules/General/transform:25: recipe for target 'Make/linux64GccDPInt64Opt/operators/blockOperators.o' failed
make: *** [Make/linux64GccDPInt64Opt/operators/blockOperators.o] Error 1



I got same error, Can someone please let me know how to get rid of this error ?
ragom is offline   Reply With Quote

Reply

Tags
openfoam, rheotool


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
[OpenFOAM.org] Compiling OpenFOAM 5.0 on the Titan Supercomputer wildfire230 OpenFOAM Installation 20 May 6, 2020 08:30
Getting error both interpreting and compiling serene6390 Fluent UDF and Scheme Programming 1 October 27, 2017 01:49
All files present. but solver not compiling saddy OpenFOAM Programming & Development 1 July 29, 2017 10:50
[OpenFOAM.org] Trouble Compiling OpenFOAM-dev using Intel Compiler 15 for use on Xeon Phi foamer123 OpenFOAM Installation 9 August 20, 2015 15:03
Help with KIVA4 source code compiling geothokar Main CFD Forum 0 September 3, 2010 06:40


All times are GMT -4. The time now is 18:53.