[deal.II] Re: It seems that parallel::distributed::SolutionTransfer does not support hp::DoFHandler, how can I transfer solution after mesh changed

2017-05-15 Thread Jack
Hi Jean-Paul, Thanks for your help. My program failed to compile, so I didn't run it and get such an assertion. I see that the un-supporting of hp::DoFHandler for parallel distributed calculation in hp namespace. Thanks! Regards, Jack 在 2017年5月15日星期一 UTC+8下午10:27:22,Jean-Paul Pelteret写道: >

Re: [deal.II] Re: Step-42

2017-05-15 Thread Bruno Turcksin
Ben, 2017-05-15 17:24 GMT-04:00 : > Thanks very much for your help. I really appreciate your kindness if you let > me know why this step cannot be run as other tutorials? make run basically does make followed by ./step-xx This doesn't work for step-42 because it requires an input. That's why you

[deal.II] Re: Step-42

2017-05-15 Thread benhour . amirian66
Dear All, Thanks very much for your help. I really appreciate your kindness if you let me know why this step cannot be run as other tutorials? Bests, Ben On Monday, May 15, 2017 at 4:12:17 PM UTC-5, Bruno Turcksin wrote: > > Benhour, > > do the following three steps: > cmake . > make > ./step-42

[deal.II] Re: Step-42

2017-05-15 Thread Bruno Turcksin
Benhour, do the following three steps: cmake . make ./step-42 p1_adaptive.prm Best, Bruno On Monday, May 15, 2017 at 5:04:33 PM UTC-4, benhour.amiria...@gmail.com wrote: > > Dear Jean-Paul, > If I did correct, first I call "cmake ." and then "make run ./step-42 > p1_adaptive.prm" and did not

[deal.II] Re: Step-42

2017-05-15 Thread benhour . amirian66
Dear Jean-Paul, If I did correct, first I call "cmake ." and then "make run ./step-42 p1_adaptive.prm" and did not use "make". With these changes, it did not work again. Thanks, Ben On Monday, May 15, 2017 at 3:27:29 PM UTC-5, Jean-Paul Pelteret wrote: > > Dear Benhour, > > I think that you mus

Re: [deal.II] Error in the second derivative of solution...?

2017-05-15 Thread Jean-Paul Pelteret
Dear Kyusik, > I'm sorry to tell you that actually I don't know how to project > grad_solution into the vector-valued FE space > > Do you happen to know some example tutorial code that includes it? > Off the top of my head, no I don't know of an example tutorial that demonstrates it.

[deal.II] Re: Step-42

2017-05-15 Thread Jean-Paul Pelteret
Dear Benhour, I think that you must have misinterpreted what Daniel suggested. If I run ./step-42 p1_adaptive.prm > then this tutorial works fine for me. If I run "make run" then the (unusual) error message appears for me as well. Regards, Jean-Paul On Monday, May 15, 2017 at 7:30:25 PM UTC

[deal.II] Re: Step-42

2017-05-15 Thread benhour . amirian66
Dear Daniel, According to your noteworthy comments, I tried exactly what you said, however, I got exactly the same as before, as what you got. Thanks, Benhour On Monday, May 15, 2017 at 12:23:44 PM UTC-5, Daniel Arndt wrote: > > Benhour, > > `make run` gives me: > > Scanning dependencies of targ

[deal.II] Re: Step-42

2017-05-15 Thread Daniel Arndt
Benhour, `make run` gives me: Scanning dependencies of target step-42 [ 33%] Building CXX object CMakeFiles/step-42.dir/step-42.cc.o [ 66%] Linking CXX executable step-42 [ 66%] Built target step-42 Scanning dependencies of target run [100%] Run step-42 with Debug configuration *** Call this prog

[deal.II] Re: Step-42

2017-05-15 Thread benhour . amirian66
Dear All, Unfortunately I could not run this step. In fact, none of my friends also could run this step. I was wondering if you let me know it works in your system. Thanks, Benhour On Monday, May 15, 2017 at 6:25:51 AM UTC-5, Jean-Paul Pelteret wrote: > > Dear Benhour, > > I would suggest remo

Re: [deal.II] Error in the second derivative of solution...?

2017-05-15 Thread hanks0227
Dear Jean-Paul Pelteret, Thank you very much for your help. It is very helpful. > However, you'll note that this function only makes sense (and its > therefore only defined) for a vector field. Your solution field is scalar > though, which presents a bit of an issue. On the face of it you'd ha

[deal.II] Re: It seems that parallel::distributed::SolutionTransfer does not support hp::DoFHandler, how can I transfer solution after mesh changed

2017-05-15 Thread Jean-Paul Pelteret
Hi Jack, The hp::DoFHandler does not work at all for distributed meshes (although I see that this is not explicitly stated in the class documentation or that of parallel::distributed::Triangulation

[deal.II] Representing/Visualizing tangent vectors of codimension one manifolds

2017-05-15 Thread justin . a . grewe
Hi all, I am interested in solving vector valued pdes on 2d surfaces embedded in 3d space. More specifically the vectors lie in the tangent space, such that they only have 2 components rather than 3. Here I have a few questions: 1. Say I want to visualize the solution, i would expect that i hav

[deal.II] It seems that parallel::distributed::SolutionTransfer does not support hp::DoFHandler, how can I transfer solution after mesh changed

2017-05-15 Thread Jack
Dear all, I’m trying to using hp::DoFHandler to solve my problems. It seems that this type of dof handler does not work for solution transfer during parallel distributed computing. So is there any way to transfer solution after refining and coarsening of mesh when using hp::DoFHandler?

[deal.II] Re: Adding periodicity to a thin sample with one element in thickness direction

2017-05-15 Thread Jean-Paul Pelteret
Dear Hamad, Would you mind please posting a minimal example that demonstrates the issue? Since both Daniel and I are surprised that this is the behaviour that you're experiencing, I would say that this is an unexpected outcome. Regards, Jean-Paul On Monday, May 15, 2017 at 3:40:20 PM UTC+2, Ha

[deal.II] Re: Adding periodicity to a thin sample with one element in thickness direction

2017-05-15 Thread Hamed Babaei
Dear Daniel, As far as I see, GridGenerator::subdivided_hyper_rectangle only calls > "Triangulation::create_triangulation" and hence creates a coarse > triangulation. > Can you confirm either? > If GridGenerator::subdivided_hyper_rectangle creates a coarse triangulation, a question arises that

Re: [deal.II] Re: Create_point_source_vector Magnitude

2017-05-15 Thread Kartik Jujare
Thank you Bruno. My mistake. Regards, Kartik Jujare On Friday, May 12, 2017 at 3:42:54 PM UTC+2, Bruno Turcksin wrote: > > 2017-05-12 9:32 GMT-04:00 Kartik Jujare >: > > > The graph shows the steady state solution given a point source at > (0.6,0.6). > Why would you expect the _solution_ to be

[deal.II] Re: Step-42

2017-05-15 Thread Jean-Paul Pelteret
Dear Benhour, I would suggest removing the CMakeCache.txt file and CMakeFiles directory (both located in the tutorial/build directory). Then rerun CMake before trying to build the tutorial. It might be that there are some stale configuration settings that need to be updated. Regards, Jean-Paul

[deal.II] Re: Getting error during cmake configuration step and later during make run

2017-05-15 Thread Daniel Arndt
Vikram, > I am new to dealii. I installed deal.II 8.5.0 using the dmg package from > dealii website on mac OS Sierra. When I tried to configure I got this error: > > CMake Error at > /Applications/deal.II-8.5-brew.app/Contents/Resources/brew/Cellar/cmake/3.7.2/share/cmake/Modules/CMakeTestCXXCom

[deal.II] Re: Step-42

2017-05-15 Thread Daniel Arndt
Ben, I tried with version 8.4.1 and also the new version, 8.5, however it does > not run at all. The errors that I got are given as below: > make[3]: *** [CMakeFiles/run] Error 1 > make[2]: *** [CMakeFiles/run.dir/all] Error 2 > make[1]: *** [CMakeFiles/run.dir/rule] Error 2 > make: *** [run] Err

Re: [deal.II] Error in the second derivative of solution...?

2017-05-15 Thread Jean-Paul Pelteret
Dear Kyusik, So my new question is , in deal.II, could I get local divergence of certain > function to get surface integral? > >> Yes it is. You can extract the divergence of a function using, for example, the FEValuesView function get_function_divergences