Re: [deal.II] How to apply a spatially variable non-zero initial condition in step-52?

2020-06-07 Thread Krishnakumar Gopalakrishnan
Dear Dr Bangerth, I tried using the VectorTools::project idea from step-25. However, my code fails to compile, and I could not decipher the errors and do not know how to fix this problem (have been stuck for a while). The attached code tries to implement Step-52 (but for 1D), with homogenous diri

Re: [deal.II] triangulation save not working for 1D domain

2020-06-07 Thread Wolfgang Bangerth
On 6/7/20 9:12 AM, Amaresh B wrote: Thank you Luca for your reply. I can avoid parallel::distributed::Triangulation and use serial code. Can you suggest a method to save the solutions along with the triangulation which can be used for restarting code? Also please let me know if any example code

Re: [deal.II] Re: Almost installed Deal II, but there is a fly in the ointment!

2020-06-07 Thread Wilmar Alves Cruvinel Lima
Yes, I manage to install it! Thank you Bruno. I don't know where you are from, but for sure it must be a very good place. Three months trying to install this very important software. It was machines and operator limitations. It will be very important to my Electrical Engineering graduation. Now

Re: [deal.II] Re: Almost installed Deal II, but there is a fly in the ointment!

2020-06-07 Thread Wilmar Alves Cruvinel Lima
Dear Bruno, I did only the commandmake. It runs relatively fast. Now I put make install After 1 1/2 hour it is on 70% of Building CXX object source... Until now noting is on /home/wilmar/dealii_library I hope that it will finish ok! Thank you again. Best regards. Wilmar. Em Dom, 7 de

Re: [deal.II] Re: Almost installed Deal II, but there is a fly in the ointment!

2020-06-07 Thread Bruno Blais
Did you compile the library by using the "make install" command? Cmake only configures the build but does not compile the library per say. Best Bruno On Sunday, 7 June 2020 14:17:44 UTC-4, Wilmar Alves Cruvinel Lima wrote: > > Dear Bruno, > > Great! It functioned... > > I put the commands: > wilm

Re: [deal.II] Re: Almost installed Deal II, but there is a fly in the ointment!

2020-06-07 Thread Wilmar Alves Cruvinel Lima
Dear Bruno, Great! It functioned... I put the commands: wilmar@linuxmint:~/build$ *mkdir dealii_library* So, I put the command and it runned: wilmar@linuxmint:~/build$ *cmake /home/wilmar/dealii-9.1.1 -DCMAKE_INSTALL_PREFIX=/home/wilmar/dealii_library* -- This is CMake 3.10.2 -- -- Include /hom

Re: [deal.II] Re: Almost installed Deal II, but there is a fly in the ointment!

2020-06-07 Thread Bruno Blais
So there are two things you must keep in mind when you run cmake The command should be something similar to cmake /path/to/dealii/sources -DCMAKE_INSTALL_PREFIX=/path/to/where/you/want/to/install The first folder you point to is the folder you cloned the deal.II sources to (which will contain

Re: [deal.II] Re: Almost installed Deal II, but there is a fly in the ointment!

2020-06-07 Thread Wilmar Alves Cruvinel Lima
Thank you Bruno, Yes, the valid path, I think, is */home/wilmar/build . *Orientation on *https://www.dealii.org/current/readme.html * inform a different directory from unpacked Deal.II. So, I returned to run cmake again, with the command: wilmar@linuxm

Re: [deal.II] triangulation save not working for 1D domain

2020-06-07 Thread luca.heltai
You could use a boost archive, and save the triangulation to a binary file using operator << (and >> to load it), i.e.: #include #include ... std::ofstream file(filename, std::ios::binary | std::ios::trunc); boost::archive::binary_oarchive oa(file); oa << tria; and then restore it with

Re: [deal.II] triangulation save not working for 1D domain

2020-06-07 Thread Amaresh B
Thank you Luca for your reply. I can avoid parallel::distributed::Triangulation and use serial code. Can you suggest a method to save the solutions along with the triangulation which can be used for restarting code? Also please let me know if any example code is available. Thanks Sincerely Amares

Re: [deal.II] triangulation save not working for 1D domain

2020-06-07 Thread luca.heltai
Amaresh, as the documentation states, parallel::distributed::Triangulation is not implemented in 1d. Consequently, parallel::distributed::SolutionTransfer will not work in 1d. Are you running your code in debug mode? In debug mode several assertions are throw when you try to instantiate a 1d

[deal.II] Re: Almost installed Deal II, but there is a fly in the ointment!

2020-06-07 Thread Bruno Blais
Hello, You are getting this error because the installation path that you specified is not valid. When you did you cmake command, you specific the installation path to : */path/to/install/dir/share/deal.II/scripts* This path on your linux machine is not a valid path, and consequently, this folde

[deal.II] Re: About metallic ductile damage

2020-06-07 Thread Bruno Blais
Dear Itachi, Deal.II is significantly different than abaqus in the fact that you easily write you own equation and solve from it using whatever mean you find necessary. However, it does not come readily built with a library of physical solvers or constitutive laws. Consequently, you will have to

[deal.II] Re: triangulation save not working for 1D domain

2020-06-07 Thread Amaresh B
I have even tried with subdivided_hyper_rectangle . The triangulation is not saved. On Saturday, June 6, 2020 at 11:25:03 PM UTC+5:30, Amaresh B wrote: > > Thank you peterrum for you

[deal.II] [deal.ii]mesh import problem

2020-06-07 Thread 陈敏
Hi Deal.ii team, I want to import the mesh file exported by gmsh. First,I export mymodel.geo file to vtk file in gmsh, automatically,the first line of the vtk is “# vtk DataFile Version 2.0” , so I change it to “ # vtk DataFile Version 3.0”. However, an error is reported as follow: libc++abi.dyl