GithubHelp home page GithubHelp logo

vortexje's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

vortexje's Issues

Something seems wrong with the type cast in vawt.cpp and hawt.cpp

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

static assertion failed: std::vector must have the same value_type as its allocator

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

Not-a-Number output by write_velocity_field when leading edge aligns with grid.

When the leading edge aligns up exactly with a cell edge, write_velocity_field writes a NaN value.
(yellow indicates NaN)

aligned
aligned
not-aligned
not-aligned

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.