User Activity

  • Posted a comment on discussion General Discussion on ViennaGrid

    Actually, code PointType p = viennagrid::default_point_accessor(*viennagrid::find(mesh, VertexIDType(cell_point_ID)); doesn't work. It should be PointType p = viennagrid::default_point_accessor(mesh)(*viennagrid::find(mesh, VertexIDType(cell_point_ID)));

  • Posted a comment on discussion General Discussion on ViennaGrid

    Hello, Karli. Thanks for the answer, it seems this is what I was looking for. Best regards, Cyril

  • Posted a comment on discussion General Discussion on ViennaGrid

    Hello, what is an elegant way to get coordinates of a mesh vertex by its id? For the time being, I've implemented it like this: typedef viennagrid::triangular_2d_mesh MeshType; typedef viennagrid::result_of::vertex<MeshType>::type VertexType; typedef viennagrid::result_of::point<MeshType>::type PointType; typedef viennagrid::result_of::id<VertexType>::type VertexIDType; unsigned int cell_point_ID = 5; PointType p = viennagrid::find(mesh, VertexIDType(cell_point_ID))[0].appendix(); which looks awkward....

  • Posted a comment on discussion General Discussion on ViennaCL

    GMRES of ViennaCL works great. The stupid error was connected with results plotting.

  • Posted a comment on discussion General Discussion on ViennaCL

    Thanks for the answer. I have to think over it.

  • Posted a comment on discussion General Discussion on ViennaCL

    Hello Karli, I've tried your solver parameters and got the same wrong solution. I didn't mention in the first massage that I've already "played" with different parameters of the solver but without success. I've also tried to solve with transposed stiffness matrix and without preconditioner. Why GMRES solves test case 1 though MATLAB tells me that my matrix has zero determinant? Thanks, Cyril

  • Modified a comment on discussion General Discussion on ViennaCL

    Hello. Thanks for one more great library. I'm trying to solve a system of linear equations originating from convection equation (cell-centered finite volume method). I get the right solution for a simple test case: Fig. 1. Test case 1. Parameters of matrix K (K C = L): dimensions 3148x3148, nonsymmetric, cond.number=152, rank=3148, det=0 (MATLAB command det(A) gives such a result) But I get the wrong solution for a little more complex test case: Fig. 2. Test case 2. Parameters of matrix K (K C =...

  • Posted a comment on discussion General Discussion on ViennaCL

    Hello. Thanks for one more great library. I'm trying to solve a system of linear equations originating from convection equation (cell-centered finite volume method). I get the right solution for a simple test case: Fig. 1. Test case 1. Parameters of matrix K (K C = L): dimensions 3148x3148, nonsymmetric, cond.number=152, rank=3148, det=0 (MATLAB command det(A) gives such a result) But I get the wrong solution for a little more complex test case: Fig. 2. Test case 2. Parameters of matrix K (K C =...

View All

Personal Data

Username:
smaginka
Joined:
2017-08-23 12:02:11

Projects

  • No projects to display.

Personal Tools