|
[Sponsors] |
April 10, 2018, 12:25 |
rheoTool compiling
|
#1 |
Senior Member
A. Min
Join Date: Mar 2015
Posts: 305
Rep Power: 12 |
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 |
|
April 15, 2018, 18:06 |
|
#2 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Quote:
__________________
|
||
May 14, 2019, 09:18 |
Error compiling rheoTool with of6
|
#3 |
New Member
Dino
Join Date: Oct 2016
Posts: 2
Rep Power: 0 |
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 16:37. Reason: Added [CODE][/CODE] markers |
|
May 14, 2019, 16:41 |
|
#4 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Quick questions:
__________________
|
|
May 15, 2019, 03:05 |
|
#5 |
New Member
Dino
Join Date: Oct 2016
Posts: 2
Rep Power: 0 |
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. |
|
May 11, 2021, 05:28 |
|
#6 |
Senior Member
A. Min
Join Date: Mar 2015
Posts: 305
Rep Power: 12 |
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)) | ~~~~~~~~~~~~~^~~~~~~~~~~~~ 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. 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. HTML Code:
https://openfoamwiki.net/index.php/Installation/Linux/OpenFOAM-7/Ubuntu/20.04 |
|
November 25, 2023, 01:41 |
Rheotool compilation error
|
#7 | |
New Member
Ra Go M
Join Date: Nov 2023
Posts: 1
Rep Power: 0 |
Quote:
I got same error, Can someone please let me know how to get rid of this error ? |
||
Tags |
openfoam, rheotool |
Thread Tools | Search this Thread |
Display Modes | |
|
|
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 07:30 |
Getting error both interpreting and compiling | serene6390 | Fluent UDF and Scheme Programming | 1 | October 27, 2017 00:49 |
All files present. but solver not compiling | saddy | OpenFOAM Programming & Development | 1 | July 29, 2017 09:50 |
[OpenFOAM.org] Trouble Compiling OpenFOAM-dev using Intel Compiler 15 for use on Xeon Phi | foamer123 | OpenFOAM Installation | 9 | August 20, 2015 14:03 |
Help with KIVA4 source code compiling | geothokar | Main CFD Forum | 0 | September 3, 2010 05:40 |