jbaayen / vortexje Goto Github PK
View Code? Open in Web Editor NEWLicense: Other
License: Other
The issue appears as
/home/***/software/vortexje/examples/vawt/vawt.cpp: In function ‘int main(int, char**)’: /home/***/software/vortexje/examples/vawt/vawt.cpp:226: error: call of overloaded ‘moment(std::shared_ptr<VAWT>&, Eigen::Vector3d&)’ is ambiguous /home/***/software/vortexje/./vortexje/solver.hpp:112: note: candidates are: Eigen::Vector3d Vortexje::Solver::moment(const std::shared_ptr<Vortexje::Body>&, const Eigen::Vector3d&) const /home/***/software/vortexje/./vortexje/solver.hpp:113: note: Eigen::Vector3d Vortexje::Solver::moment(const std::shared_ptr<Vortexje::Surface>&, const Eigen::Vector3d&) const make[2]: *** [examples/vawt/CMakeFiles/vawt.dir/vawt.cpp.o] Error 1 make[1]: *** [examples/vawt/CMakeFiles/vawt.dir/all] Error 2
Please refer to
http://www.discretizer.se/?p=151
in the file
vortexje/examples/hawt/hawt.cpp
line 25
#define N_BLADES 3
NREL phase6 wind turbine is a two-bladed turbine actually
When compiling the code, I got the following error.
Scanning dependencies of target vortexje
[ 27%] Building CXX object vortexje/CMakeFiles/vortexje.dir/solver.cpp.o
In file included from /usr/include/c++/9/vector:67,
from /usr/include/eigen3/Eigen/SparseCore:15,
from /usr/include/eigen3/Eigen/IterativeLinearSolvers:11,
from /home/adam/vortexje/vortexje/solver.cpp:23:
/usr/include/c++/9/bits/stl_vector.h: In instantiation of ‘class std::vector<std::vector<Eigen::Matrix<double, 3, 1>, Eigen::aligned_allocator<Eigen::Matrix<double, 3, 1> > >, Eigen::aligned_allocator<std::vector<Eigen::Matrix<double, 3, 1> > > >’:
/home/adam/vortexje/vortexje/solver.cpp:1003:116: required from here
/usr/include/c++/9/bits/stl_vector.h:401:64: error: static assertion failed: std::vector must have the same value_type as its allocator
401 | static_assert(is_same<typename _Alloc::value_type, _Tp>::value,
| ^~~~~
make[2]: *** [vortexje/CMakeFiles/vortexje.dir/build.make:76: vortexje/CMakeFiles/vortexje.dir/solver.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:533: vortexje/CMakeFiles/vortexje.dir/all] Error 2
make: *** [Makefile:163: all] Error 2
The compiler versions posted when executing the cmake command are given below.
-- The C compiler identification is GNU 9.3.0
-- The CXX compiler identification is GNU 9.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Eigen3: /usr/include/eigen3 (Required is at least version "3.2.2")
-- Found OpenMP_C: -fopenmp (found version "4.5")
-- Found OpenMP_CXX: -fopenmp (found version "4.5")
-- Found OpenMP: TRUE (found version "4.5")
-- Found Doxygen: /usr/bin/doxygen (found version "1.8.17") found components: doxygen dot
-- Configuring done
-- Generating done
-- Build files have been written to: /home/adam/vortexje/build
When the leading edge aligns up exactly with a cell edge, write_velocity_field writes a NaN value.
(yellow indicates NaN)
NaN values are not supported by the ASCII VTK legacy file format.
In order to generate these images I wrote binary support for VTKFieldWriter, I will create a pull request with binary support.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.