[deal.II] Using periodic boundary conditions with parallell processing

2021-07-03 Thread Raghunandan Pratoori
Hello team, I am running a 3D simulation with periodicity in all 3 directions. I have defined the periodic boundary conditions using (similarly in the other 2 directions) - *DoFTools::make_periodicity_constraints(dof_handler, /*b_id*/ 0,

Re: [deal.II] Re: Using periodic boundary conditions with parallell processing

2021-07-05 Thread Raghunandan Pratoori
ot symmetric >> or not positive definite). In these cases, the residual in the last >> iteration is likely going to be large. >> >> I would appreciate any pointers on the possible mistakes I might be >> making. >> >> Best regards, >> Raghunandan. >> >&

Re: [deal.II] Deal.II programming environment

2021-08-03 Thread Raghunandan Pratoori
Hi, I recently started using VS code with deal.ii. I found it very easy to work with, especially when you have a wsl installation. All you need to do is follow the instructions on these pages - https://code.visualstudio.com/docs/cpp/config-wsl https://code.visualstudio.com/docs/cpp/cmake-linux

[deal.II] Clarification in Step-45 of tutorial

2021-10-07 Thread Raghunandan Pratoori
Hello, Why is VectorTools::interpolate_boundary_values used twice - once before DoFTools::make_periodicity_constraints and once after in setup_dofs? Best, Raghunandan. -- The

[deal.II] Clarification on Periodic Boundary Conditions

2021-10-20 Thread Raghunandan Pratoori
Hello, I am trying to apply Periodic Boundary Conditions on a cubic sample in all the three directions and then compress it - compression of an RVE. The displacement I need to give is:[image: Screenshot 2021-10-20 204440.png] For this, I first applied PBC using

Re: [deal.II] Clarification in Step-45 of tutorial

2021-10-08 Thread Raghunandan Pratoori
Hello Dr. Bangertt, I tried by removing the second occurrence of VectorTools::interpolate_boundary_values and got the same results. Best, On Thursday, October 7, 2021 at 10:24:48 PM UTC-5 Wolfgang Bangerth wrote: > On 10/7/21 8:10 PM, Raghunandan Pratoori wrote: > > > > Why

Re: [deal.II] Clarification in Step-45 of tutorial

2021-10-08 Thread Raghunandan Pratoori
Sure. I can do that. On Friday, October 8, 2021 at 4:36:21 PM UTC-5 Wolfgang Bangerth wrote: > On 10/8/21 2:21 PM, Raghunandan Pratoori wrote: > > Sure! I would be happy to that! I will submit a pull request. I am > currently > > working on v9.3.0. Will submitting a pull re

Re: [deal.II] Clarification in Step-45 of tutorial

2021-10-08 Thread Raghunandan Pratoori
AM, Raghunandan Pratoori wrote: > > > > I tried by removing the second occurrence > > ofVectorTools::interpolate_boundary_values and got the same results. > > Great, thanks for trying this out. Would you like to submit a patch to > deal.II that fixes this? You'd become

Re: [deal.II] Viewing node numbers and cell numbers in visualization

2021-10-06 Thread Raghunandan Pratoori
UTC-5 Wolfgang Bangerth wrote: > On 10/5/21 8:30 PM, Raghunandan Pratoori wrote: > > > > I would like to see how the nodes and cells are numbered during > visualization, > > much like in Abaqus. I am using Paraview for visualization. How should I > write > >

Re: [deal.II] Viewing node numbers and cell numbers in visualization

2021-10-06 Thread Raghunandan Pratoori
I was able to do it using DoFTools::map_dofs_to_support_points. Best, On Wednesday, October 6, 2021 at 3:22:02 PM UTC-5 Raghunandan Pratoori wrote: > Thank you for your reply Dr. Bangerth. > > I want to check which vertices are associated with the what DoFs. How can > I extract t

[deal.II] Viewing node numbers and cell numbers in visualization

2021-10-05 Thread Raghunandan Pratoori
Hello, I would like to see how the nodes and cells are numbered during visualization, much like in Abaqus. I am using Paraview for visualization. How should I write my mesh for it to store all this data? Best, Raghunandan. -- The deal.II project is located at http://www.dealii.org/ For

[deal.II] Adding inhomogeneity to Periodic BC

2021-10-22 Thread Raghunandan Pratoori
Hello, I have a cube with periodicity in all 3 directions. I want to add inhomogeneity in addition to Periodic BC on one face. Below is what I have done - { IndexSet selected_dofs_z; std::set boundary_ids_z = std::set(); boundary_ids_x.insert(4);

[deal.II] Re: Adding inhomogeneity to Periodic BC

2021-10-23 Thread Raghunandan Pratoori
I realized that the above situation is arising because of close(). Is there a way to add inhomogeneity without it being added again because of periodic condition? Best, On Friday, October 22, 2021 at 8:01:18 PM UTC-5 Raghunandan Pratoori wrote: > Hello, > > I have a cube with pe

[deal.II] Use of DoFRenumbering

2022-01-09 Thread Raghunandan Pratoori
Hello, I am trying to understand the effective usage of DoFRenumbering. From the examples I have looked at and the pages I have read, I seem to understand that renumbering is recommended. But I do not see it being used in few examples, say step-40. Is there a reason for not renumbering in

[deal.II] Re: Use of DoFRenumbering

2022-01-16 Thread Raghunandan Pratoori
Hi Marc, Thanks for your reply. I use DoFRenumbering with parallel::distributed::Triangulation and it works for me. I wanted to know why it was not used in step-40. Is it that the improvement observed vs the time taken for renumbering does not make it worth using it in this specific case?

[deal.II] Re: Cannot find the header files when compiling with WSL Linux distributive in VS code

2022-01-16 Thread Raghunandan Pratoori
Hi, I use VS Code with WSL. I followed the instructions on these 2 pages and was able to get it to work - https://code.visualstudio.com/docs/cpp/config-wsl https://code.visualstudio.com/docs/cpp/cmake-linux Also, how did you install deal.ii in wsl? I used the PPA and it took care of all the

[deal.II] Re: Cluster installation error with symengine library

2022-02-08 Thread Raghunandan Pratoori
Hi Stephanie, I use a singularity container with deal.ii on my university cluster. I found it to be much simpler and working on any other cluster tried without any problems. I suggest you try that as it is a more reliable solution. Also, if needed, I can give you access to the singularity

[deal.II] Error using Operator/ in Vector and FullMatrix

2022-04-08 Thread Raghunandan Pratoori
Hello team, I am trying to use the following equations - r = r/theta; OM = OM_1*cos(theta); where r is a dealii::Vector, theta is double, OM and OM_1 are dealii::FullMatrix. According to the documentation, operator/ and operator* are implemented for both Vector and FullMatrix, but

[deal.II] Extension of Step-18

2023-09-04 Thread Raghunandan Pratoori
Hello team, I want to implement Refinement during timesteps as described in Step-18, but for a much larger problem. I want to do this using a parallel vector for history_field. I want to clarify if the

Re: [deal.II] Extension of Step-18

2023-09-14 Thread Raghunandan Pratoori
>? Best, Raghunandan. On Monday, September 4, 2023 at 9:59:49 PM UTC-5 Wolfgang Bangerth wrote: > On 9/4/23 20:57, Raghunandan Pratoori wrote: > > I want to clarify if the below is the correct implementation of it - > > > > std::vector>> > > history_fiel

Re: [deal.II] Extension of Step-18

2023-09-14 Thread Raghunandan Pratoori
the compress operation is not defined for that datatype. However, I am unsure how to do the compress operation, as mentioned in Step-18. Please advice. Best, Raghunandan. On Thursday, September 14, 2023 at 6:49:11 PM UTC-5 Wolfgang Bangerth wrote: > On 9/14/23 15:50, Raghunandan Pratoori w

[deal.II] Nan for stress values

2023-10-31 Thread Raghunandan Pratoori
Hello, I am running a code to study phase transformations in metals. The code runs without any problem in release mode, but gives nan when outputting stress values using the same code snippet as in Step-18. When I run the same code in debug mode, it gives the following error: An error occurred

Re: [deal.II] Memory error from utilities.cc

2022-08-23 Thread Raghunandan Pratoori
allotted for the simulation? Or is there a way to decrease the memory demand? Thanks in advance, Raghunandan. On Monday, August 22, 2022 at 10:47:46 AM UTC-5 Wolfgang Bangerth wrote: > On 8/20/22 12:56, Raghunandan Pratoori wrote: > > > > for (unsi

[deal.II] Memory error from utilities.cc

2022-08-19 Thread Raghunandan Pratoori
Hello team, I am trying to run a simulation with grid refine factor 7. I know this is significantly large and any improper code will raise memory issues. I am in fact getting memory issues after completion of first time step and I am not able to pin point where I probably am making a mistake.

Re: [deal.II] Memory error from utilities.cc

2022-08-20 Thread Raghunandan Pratoori
r>(dim)), local_history_values_at_qpoints(dim, std::vector>(dim)), local_history_fe_values(dim, std::vector>(dim)); std::vector>> history_field_strain(dim, std::vector>(dim)); for (unsigned int i=0; i On 8/

Re: [deal.II] Memory error from utilities.cc

2022-08-25 Thread Raghunandan Pratoori
? Is there any example where distributed computing is implemented in the post processing so that I can compare my code and see if it can be improved? Thanks in advance, Raghunandan. On Tuesday, August 23, 2022 at 12:06:37 PM UTC-5 Wolfgang Bangerth wrote: > On 8/23/22 07:22, Raghunandan Pratoori wr

[deal.II] Re: Problem in installing deallii using candy command.

2023-08-08 Thread Raghunandan Pratoori
If all you want is a standard installation of deal.ii in Ubuntu (20.04 or later), the best way is to do it with the following commands - sudo apt update sudo apt install libdeal.ii-dev sudo apt upgrade You can also install previous versions using PPA as given in this link - deal.II Downloads

[deal.II] Re: Problem in installing deallii using candy command.

2023-08-10 Thread Raghunandan Pratoori
You can choose the appropriate tag depending on the version you want for candi. Click 'Tags' above the repository directories to check the available tags. Clone the repository with the appropriate release tag, and you should get the right version. But, it is highly unlikely that it will solve