Re: [deal.II] Use Gmsh to import external grid calculation elasticity problem

2020-11-09 Thread Nick Wang
Uh, what I want to do is to use deal.ii to simulate our own model, Before using deal.ii , I used some numerical simulation software like abaqus. However, it will be very difficult to use abaqus to simulate seepage flow and multiphase coupling. I tried to use deal to build a simple model to

Re: [deal.II] Use Gmsh to import external grid calculation elasticity problem

2020-11-09 Thread Wolfgang Bangerth
On 11/9/20 8:11 PM, Nick Wang wrote: But I am still confused as to how I should add some load? Attach my code. template void create_point_source_vector(const std::vector>& points, std::vector>& values) { Point point_1; point_1(0) = 0.5; point_1(1) = 0.3; values[point_1][1] = -10.0; }

Re: [deal.II] Use Gmsh to import external grid calculation elasticity problem

2020-11-09 Thread Nick Wang
Thanks, Wolfgang, I think reading some PDE knowledge materials would help me to solve the constitutive equation problems. I try to read the create_point_source_vector() class in deal.ii https://www.dealii.org/9.2.0/doxygen/deal.II/namespaceVectorTools.html#ac4e531baa71a5183079fd2083aa7d723

Re: [deal.II] Use Gmsh to import external grid calculation elasticity problem

2020-11-09 Thread Wolfgang Bangerth
Nick, If I want to modify the constitutive equation based on step-8, but I can't understand the expression you described in step8, like this. [...] Which aspect of knowledge should I learn if I want to modify the constitutive equation. This is a question that goes beyond what we can

Re: [deal.II] Adding new obj target

2020-11-09 Thread Zachary Streeter
Thanks Wolfgang, I think you are correct! I just tried to use petsc_full_matrix instead and it linked no problem! On Monday, November 9, 2020 at 5:25:30 PM UTC-6 Wolfgang Bangerth wrote: > On 11/9/20 2:49 PM, Daniel Arndt wrote: > > > > Undefined symbols for architecture x86_64: > >

Re: [deal.II] Adding new obj target

2020-11-09 Thread Wolfgang Bangerth
On 11/9/20 2:49 PM, Daniel Arndt wrote: Undefined symbols for architecture x86_64:   "dealii::PETScWrappers::SparseMatrix::SparseMatrix(int const&, bool)", referenced from: There is no such function -- the linker tells you that, but it's unclear to me how it is referenced in

Re: [deal.II] Adding new obj target

2020-11-09 Thread Zachary Streeter
Ah sorry, yes I have done that already. Sorry for forgetting that detail... If it should work assuming I have added my new directory in source/CMakeLists.txt, maybe my implementation is the problem. Though, I wouldn't know why since it fails at linking. On Monday, November 9, 2020 at

Re: [deal.II] Adding new obj target

2020-11-09 Thread Daniel Arndt
Zachary, You also need to make sure that CMake actually sees that your new source directory. In particular, you should add a line saying ADD_SUBDIRECTORY(Test) to source/CMakeLists.txt. Best, Daniel Am Mo., 9. Nov. 2020 um 11:35 Uhr schrieb Zachary 42! < zacharyloui...@gmail.com>: > Hi

[deal.II] Adding new obj target

2020-11-09 Thread Zachary 42!
Hi folks, I am trying to add another include/source directory and subsequent obj to dealii for potential future contributions to dealii. Though I am having linking errors because my new obj needs to link agains the lac_obj (need Trilinos and other interfaces). I thought the ADD_DEPENDICIES

Re: [deal.II] Use Gmsh to import external grid calculation elasticity problem

2020-11-09 Thread Nick Wang
[image: Snipaste_1.png] 在2020年11月9日星期一 UTC+8 下午4:12:07 写道: > Thanks, Wolfgang, I would like to try it later. > > If I want to modify the constitutive equation based on step-8, but I can't > understand the expression you described in step8, like this. > > > > Which aspect of knowledge should I

Re: [deal.II] Use Gmsh to import external grid calculation elasticity problem

2020-11-09 Thread Nick Wang
Thanks, Wolfgang, I would like to try it later. If I want to modify the constitutive equation based on step-8, but I can't understand the expression you described in step8, like this. Which aspect of knowledge should I learn if I want to modify the constitutive equation. Or can I export the