Re: [deal.II] Mesh operations such as collapse, swapping etc. using deal.II.

2023-05-16 Thread Wolfgang Bangerth
On 5/16/23 12:52, Pranshul Thakur wrote: I am currently implementing a test case of optimization-based meshing where the mesh nodes are moved to obtain an optimal mesh. As the mesh can get distorted during the process, I am looking for a way to collapse distorted elements during optimization.

Re: [deal.II] find all vertices connected to a given vertex

2023-05-16 Thread Wolfgang Bangerth
On 5/16/23 16:13, Mathieu wrote: I have a 2d grid (no hanging nodes) where a scalar finite element field is defined on it (i.e., one degree of freedom per support point). For all vertices defined on that grid, I want to get the global dof indices of all connected vertices. E.g.: an vertex in

[deal.II] find all vertices connected to a given vertex

2023-05-16 Thread Mathieu
Hello everyone, I have a 2d grid (no hanging nodes) where a scalar finite element field is defined on it (i.e., one degree of freedom per support point). For all vertices defined on that grid, I want to get the global dof indices of all connected vertices. E.g.: an vertex inside the grid has f

Re: [deal.II] Error in using FESystem usage

2023-05-16 Thread Vinayak Vijay
Thank you for your response. I was able to fix it. On Tuesday, May 16, 2023 at 4:26:31 PM UTC+2 lucasm...@gmail.com wrote: > Hi Vinayak, > > If you do not manually initialize member variables in a constructor, they > are automatically initialized with their default constructor (i.e. one > which

[deal.II] Mesh operations such as collapse, swapping etc. using deal.II.

2023-05-16 Thread Pranshul Thakur
Hi everyone, I am currently implementing a test case of optimization-based meshing where the mesh nodes are moved to obtain an optimal mesh. As the mesh can get distorted during the process, I am looking for a way to collapse distorted elements during optimization. Does anyone know if there is

Re: [deal.II] Error in using FESystem usage

2023-05-16 Thread Daniel Arndt
Vinayak, an alternative to initializing an object of type FESystem in the constructor is to use a smart pointer like std::unique_ptr> fe_system_ptr; as a member variable since that one would have a default constructor. Best, Daniel On Tue, May 16, 2023 at 10:26 AM Lucas Myers wrote: > Hi Vin

Re: [deal.II] Error in using FESystem usage

2023-05-16 Thread Lucas Myers
Hi Vinayak, If you do not manually initialize member variables in a constructor, they are automatically initialized with their default constructor (i.e. one which takes no arguments). However, the FESystem class is such that the default constructor is manually deleted, and so can't be constructed

[deal.II] Error in using FESystem usage

2023-05-16 Thread Vinayak Vijay
Hello, I am trying to initialise FESystem in a class called "Network" (definition present in a header file), however when i am getting the following error: In constructor ‘Network::Network(const string&)’: /home/Network.cpp:21:57: error: use of deleted function ‘dealii::FESystem::FESystem() [wi