Re: [deal.II] Issue with unstructured hex mesh

2020-09-09 Thread blais...@gmail.com
Dear Paras, I have faced a lot of similar issues in the past and maybe these suggestions can help (or maybe not). 1. Generally visual rendering software (at least paraview) renders data on quad/hex meshes using triangular polygons. Consequently, when you look at the color map within a square,

[deal.II] Clearing a particle properties without getting properties for each particle

2020-10-16 Thread blais...@gmail.com
Dear all, I hope you are well :). We are currently facing a weird bottle neck. There are some operation which require us to set a particle property to zero and I think we are doing something which is not optimal at all. Right now, we loop over the particles, then we get the properties array

Re: [deal.II] Clearing a particle properties without getting properties for each particle

2020-10-17 Thread blais...@gmail.com
Maybe it is callgrind that is playing tricks on me. Here is the code : for (auto particle = particle_handler.begin(); particle != particle_handler.end(); ++particle) { // Getting properties of particle as local variable auto particle_properties = particle->get_properties(); // Reinitializing

Re: [deal.II] Clearing a particle properties without getting properties for each particle

2020-10-19 Thread blais...@gmail.com
/17/20 3:50 PM, blais...@gmail.com wrote: > > Maybe it is callgrind that is playing tricks on me. > > Here is the code : > > > > for (auto particle = particle_handler.begin(); > > particle != particle_handler.end(); > > ++particle) > > { > > // Gettin

Re: [deal.II] Clearing a particle properties without getting properties for each particle

2020-10-19 Thread blais...@gmail.com
that be the right approach? If so, I can work on a PR. On Monday, October 19, 2020 at 10:11:33 a.m. UTC-4 Wolfgang Bangerth wrote: > On 10/19/20 4:58 AM, blais...@gmail.com wrote: > > The issue is that this code is being called a lot (in our case every > > iteration, so 100k to 10M

[deal.II] Re: Fluid-Structure interaction

2020-10-11 Thread blais...@gmail.com
Dear Ramiro, You could also take a look at step-70 by Luca and I. It deplays a very prototype-ish fluid-structure interaction framework using immersed boundaries. I am sure Luca has progressed a lot on this issue since then. You can also look at software derived from Deal.II. Our group develops

Re: [deal.II] Issue with unstructured hex mesh

2020-09-25 Thread blais...@gmail.com
Be careful about SnappyHexMesh. You can use it to make hex-only meshes, but it will generate a tesselated mesh (which does not really conform to the boundary, it is by all means a voxel mesh). If you fully use Snappy, it will generate a polyhedral mesh with as many as 20 faces per element. This

[deal.II] Re: Pressure-correction scheme: Behaviour of the H1 norm on the Taylor-Green vortex

2020-10-21 Thread blais...@gmail.com
Hello Jose, I wish I could help, but I second Wolfgang's question. Is your code available somewhere? I would be glad to take a look at it and compare the solutions for the same problems using different formulations. I would expect that if you fix the issue with boundary conditions (those

Re: [deal.II] Re: Pressure-correction scheme: Behaviour of the H1 norm on the Taylor-Green vortex

2020-10-25 Thread blais...@gmail.com
> > Hello Jose, >> I wish I could help, but I second Wolfgang's question. >> Is your code available somewhere? I would be glad to take a look at it >> and compare the solutions for the same problems using different >> formulations. I would expect that if you fix the issue with boundary >>

Re: [deal.II] Tips and tricks for functional tests on chaotic systems

2020-12-29 Thread blais...@gmail.com
There is a Facebook deal.II account? Now I know what to follow :)! Cheers! Bruno On Tuesday, December 29, 2020 at 12:20:15 p.m. UTC-5 Wolfgang Bangerth wrote: > On 12/28/20 10:54 PM, blais...@gmail.com wrote: > > > > If you want to see an animation of DEM done using the d

[deal.II] Suggestions for "cheap" distributed preconditioner for transient systems?

2020-12-06 Thread blais...@gmail.com
Hello all, I hope you are all well. This is not strictly a deal.II question, but I thought I could benefit for the huge amount of expertise present on this board. I am currently launching large (at least from my POV) tasks on our HPC cluster. The task generally contain on the order of 50M to

Re: [deal.II] Suggestions for "cheap" distributed preconditioner for transient systems?

2020-12-07 Thread blais...@gmail.com
Dear Timo, thank you for your answer and your time :) On Sunday, December 6, 2020 at 9:04:24 p.m. UTC-5 Timo Heister wrote: > > The task generally contain on the order of 50M to 100M DOFs and are > transient DNS problems. > > With this you are likely at a point where factorizations (even ILU)

Re: [deal.II] Suggestions for "cheap" distributed preconditioner for transient systems?

2020-12-07 Thread blais...@gmail.com
Dear Wolgang, thank you for the answers On Sunday, December 6, 2020 at 8:00:09 p.m. UTC-5 Wolfgang Bangerth wrote: > On 12/6/20 12:27 PM, blais...@gmail.com wrote: > > > > In this case, even using ILU(1) is extremely expensive (e.g. it takes 2X > more > > time tha

Re: [deal.II] Suggestions for "cheap" distributed preconditioner for transient systems?

2020-12-07 Thread blais...@gmail.com
Dear Timo and Martin, Thank you very much for the help and advice. I'll definitely take the time to read the references of Martin and look into what you are suggesting. Clearly, I need to exploit the structure of the matrix significantly more to be able to extract more performance out of the

Re: [deal.II] Suggestions for "cheap" distributed preconditioner for transient systems?

2020-12-07 Thread blais...@gmail.com
Thank you all for the help :). This is always a bit of a lesson in humility where I realise there is just so much I don't know, and how much out there there is still to learn :)!. On Monday, December 7, 2020 at 11:52:51 a.m. UTC-5 Wolfgang Bangerth wrote: > On 12/7/20 6:19 AM, bl

[deal.II] Saving particles for checkpointing

2020-12-09 Thread blais...@gmail.com
Dear all, I hope you are well. I am trying to add checkpointing in our particle code. Particles do not have a save function, but they have a serialize function, which I think would be exactly what I need. However, the function is not documented. It takes as an argument something of class

[deal.II] Re: Saving particles for checkpointing

2020-12-09 Thread blais...@gmail.com
? On Wednesday, December 9, 2020 at 7:13:08 p.m. UTC-5 blais...@gmail.com wrote: > I think they will! I feel kind-off dumb not having realized that :) > Thanks! > Bruno > > > On Wednesday, December 9, 2020 at 6:06:17 p.m. UTC-5 peterrum wrote: > >> Do the following links help?

[deal.II] Re: Saving particles for checkpointing

2020-12-09 Thread blais...@gmail.com
; - > https://github.com/dealii/dealii/blob/master/tests/serialization/particle_handler_02.cc > > Peter > > On Wednesday, 9 December 2020 at 23:15:09 UTC+1 blais...@gmail.com wrote: > >> Dear all, I hope you are well. >> I am trying to add checkpointing in our particle code.

Re: [deal.II] Re: Saving particles for checkpointing

2020-12-10 Thread blais...@gmail.com
Awesome. It works perfectly Thank you all :)! On Wednesday, December 9, 2020 at 8:10:13 p.m. UTC-5 Wolfgang Bangerth wrote: > On 12/9/20 5:32 PM, blais...@gmail.com wrote: > > I have one tiny question actually. > > In all tests, the std::ostringstream oss which contains s

Re: [deal.II] Clearing a particle properties without getting properties for each particle

2020-12-04 Thread blais...@gmail.com
Hello Shahab, I would wait before trying to do some changes. Rene has started looking more deeply into the particle structure (see : https://github.com/dealii/dealii/pull/11314) and this will, most likely, fix your problem. On Friday, December 4, 2020 at 8:18:11 a.m. UTC-5

[deal.II] Re: Making ParticlesHandler work with dealii::Triangulation and mesh refinement/coarsening

2020-12-16 Thread blais...@gmail.com
Dear Wu, Have you tried without the dynamic cast? Can you bind the callback of a regular triangulation? I must admit I have never tried to use particles with regular triangulation (and I think that outside of step-19, not much people have done it ). On Tuesday, December 15, 2020 at 4:49:39

Re: [deal.II] Re: Pressure-correction scheme: Behaviour of the H1 norm on the Taylor-Green vortex

2020-10-28 Thread blais...@gmail.com
Hello Jose, I hope you are well. I was wondering if you had managed to get your code on github or any sharing service? I would be really interested in comparing how it behaves with monolothic FEM approaches. This is something that is very relevant to our research (and on which I would be glad

[deal.II] Tips and tricks for functional tests on chaotic systems

2020-12-28 Thread blais...@gmail.com
Dear all, I hope you are well. It is me again pestering you all with questions or looking for advice :). We are currently working on our DEM simulation engine using deal.II particles features. DEM lead to very chaotic systems (with positive Lyapunov exponents, like in MD), which means that

Re: [deal.II] Tips and tricks for functional tests on chaotic systems

2020-12-28 Thread blais...@gmail.com
Hi Wolfgang, Thank you for the suggestion. I did not think about it, but testing statistical properties (center of mass, average velocity, total kinetic energy) seems like a very sound idea! If you want to see an animation of DEM done using the deal.II particle library, you can find one on the

[deal.II] Re: Tips on writing "versatile" assembly function

2021-01-05 Thread blais...@gmail.com
. > > Best, > > Bruno > > On Monday, January 4, 2021 at 3:31:45 PM UTC-5 blais...@gmail.com wrote: > >> Dear all, >> I wish you all an happy new year! >> >> One problem we always end up facing with FEM problems is that, as program >> grow, more

Re: [deal.II] Re: Tips on writing "versatile" assembly function

2021-01-05 Thread blais...@gmail.com
e executed one after each other > per cell. This means the vtable access cost is small compared to the > actual work. > See > > https://github.com/geodynamics/aspect/blob/b9add5f53172aac18bdbb19d14ca266e88c491dd/include/aspect/simulator/assemblers/interface.h#L493-L515 > > On

[deal.II] Open tenure-track faculty position at Polytechnique Montreal

2021-01-22 Thread blais...@gmail.com
Dear all, I would like to bring to you attention the following open tenure track faculty position at Polyechnique Montréal: https://www.polymtl.ca/carriere/en/offres-demploi/professor-mechanical-engineering-computational-fluid-dynamics The position is centered around turbulent CFD in external

[deal.II] Tips on writing "versatile" assembly function

2021-01-04 Thread blais...@gmail.com
Dear all, I wish you all an happy new year! One problem we always end up facing with FEM problems is that, as program grow, more and more features are added to the equations. This leads to multiple variation of the same equations (for example, Navier-Stokes with Newtonian and non-Newtonian

[deal.II] Robust way of setting an affine constraint on a single point

2021-06-22 Thread blais...@gmail.com
Dear all, I hope you are well. This is most likely a very simple question, but what would be a good way to robustly set an AffineConstraint not on a face, but on a single DOF, while making sure that it is not an hanging node. I'd like to do something equivalent to what is done by

Re: [deal.II] Robust way of setting an affine constraint on a single point

2021-06-23 Thread blais...@gmail.com
Thank you Wolfgang, this is exactly what I needed :) Best Bruno On Tuesday, June 22, 2021 at 6:04:42 p.m. UTC-4 Wolfgang Bangerth wrote: > On 6/22/21 3:12 PM, blais...@gmail.com wrote: > > > > This is most likely a very simple question, but what would be a good way > to

Re: [deal.II] Re: dealii::SolverControl::NoConvergence with Bicgstab

2021-05-05 Thread blais...@gmail.com
I would second what the other Bruno said. I think the easiest preconditioner to try would be an ILU preconditioner. You can play with the fill level (start from 1 and move up from there). Make sure you set your absolute and relative tolerance to a reasonable level though. On Thursday, April

Re: [deal.II] Implementing Radiative Losses in Thermal Model

2021-06-04 Thread blais...@gmail.com
In addition to what Wolfgang said. If you want to add radiation boundary condition, the first step would be to implement a general robin condition. You can see radiation BC following Stefan law as a non-linear Robin BCs. Once you have a non-linear heat equation solver ready that works with

Re: [deal.II] Re: Subdivided cylinder and boundary ids

2021-06-27 Thread blais...@gmail.com
I most likely copied this mistake from the regular Cylinder and did not think of it when I coded the subdivided cylinder. Alex, if you feel comfortable, you could go ahead and make a PR following Wolfgang's suggestion. Otherwise, I'll gladly look into it this week :) Best BRuno On Friday, June

[deal.II] Re: Step-77 not working using Sundials 5.7.0

2021-07-12 Thread blais...@gmail.com
In addition, Step-77 does not compile with the Sundials 3.1.0 distributed with candi. The following error is obtained at run time in debug mode: An error occurred in line <427> of file in function unsigned int

[deal.II] Using FEInterfaceValues with FESystems?

2021-03-11 Thread blais...@gmail.com
Dear all, I hope you are well. I am currently trying to solve an advection-diffusion equation at very, very high Péclet number. I first implemented a GLS-stabilized continuous Galerkin solution, it works well, but clearly I think a DG approach would be immensely better here. The issue is that

Re: [deal.II] Using FEInterfaceValues with FESystems?

2021-03-11 Thread blais...@gmail.com
Good to know. Let me read the documentation a bit and I could try to come up with a PR. Maybe this is something we could discuss? I'd be glad to help in improving DG methods :) On Thursday, March 11, 2021 at 4:29:04 p.m. UTC-5 Wolfgang Bangerth wrote: > On 3/11/21 10:14 PM, bl

Re: [deal.II] Using FEInterfaceValues with FESystems?

2021-03-14 Thread blais...@gmail.com
tests, and > submit the PR. Sorry. I will try to pick this up again in the next few > days. > > On Fri, Mar 12, 2021 at 12:26 PM Wolfgang Bangerth > wrote: > > > > On 3/11/21 11:10 PM, blais...@gmail.com wrote: > > > Let me read the documentation a bit and I coul

[deal.II] Re: deal.II-based FSI matrix-free solver / looking for a post-doc

2021-04-18 Thread blais...@gmail.com
Dear Michal, We have a post-doc position available in my group regarding deal.II and topology optimisation for conformal cooling. Please send an email to bruno.bl...@polymtl.ca if you are interested :)! Best Bruno On Saturday, April 17, 2021 at 6:44:44 p.m. UTC-4 mtwich...@gmail.com wrote: >

Re: [deal.II] Re: Subdivided cylinder and boundary ids

2021-08-23 Thread blais...@gmail.com
This issue is now fixed by a PR merged yesterday. Best Bruno On Monday, June 28, 2021 at 6:40:04 a.m. UTC-4 alexanderc...@gmail.com wrote: > Hi Bruno, > > Sure, I can try making a PR this week. > > Best, > Alex > > On Sunday, June 27, 2021 at 9:36:50 p.m. UTC+2 blais...

[deal.II] Re: Coarsening grid from Abaqus imported mesh

2021-08-31 Thread blais...@gmail.com
Dear Truong, My understanding is that the triangulation in deal.II works like a quad/oct-forest.That is, the mesh that is generated or read serves as the forest and each cell is a tree. Consequently, it is not possible to coarsen a mesh more than it's initial configuration. For a lot of meshes

Re: [deal.II] Re: Grid deformation after load-balancing

2021-08-04 Thread blais...@gmail.com
would lead to a cleaner design. You are right that this is already very well documented in the GridTools::transform() documentation :). I need to learn to read the documentation a bit more before asking :) On Wednesday, August 4, 2021 at 10:11:03 a.m. UTC-4 Wolfgang Bangerth wrote: > On 8/4/21 6

[deal.II] Re: Grid deformation after load-balancing

2021-08-04 Thread blais...@gmail.com
Peter this is what I suspected :). Is that not a bit of an ill-defined behavior for the triangulations? Shouldnt the manifolds also translate themselves when the triangulation is translated? Clearly, it is possible to reset the manifold every time the triangulation is moved, but this becomes a

[deal.II] Re: profiling and parallel performance of deal.II user codes

2021-08-03 Thread blais...@gmail.com
Dear Richard, I have used valgrind's callgrind tool extensively in the past and it works quite well. It seems Intel VTune is free now. I have used it a lot in the last two months to optimize our code and I have found it work very, very well. We managed to improve some functions tremendously

[deal.II] Re: Triangular Meshes in deal.II

2021-11-10 Thread blais...@gmail.com
Dear Pushkar, Deal.II supports simplex meshes, you can look at the documentation : https://www.dealii.org/current/doxygen/deal.II/group__simplex.html Consequently, you can import a 2D triangular mesh made with GMSH, or you can transform a quad mesh generated by deal.II into a simplex mesh. Best

Re: [deal.II] Are there known issue between Trilinos 13.0.1 and deal.II?

2021-10-29 Thread blais...@gmail.com
component that was deprecated in Trilinos 13.0.1 Thanks for the help! I really appreciate it. Best Bruno On Friday, October 29, 2021 at 8:38:57 a.m. UTC-4 Wolfgang Bangerth wrote: > On 10/29/21 5:10 AM, blais...@gmail.com wrote: > > > > Is Adelus a Trilinos component that is m

Re: [deal.II] Are there known issue between Trilinos 13.0.1 and deal.II?

2021-10-29 Thread blais...@gmail.com
d/CMakeFiles/CMakeTmp' gmake: *** [Makefile:121: cmTC_be568/fast] Error 2 Hopefully I find a solution from there :)! On Thursday, October 28, 2021 at 11:20:42 p.m. UTC-4 Wolfgang Bangerth wrote: > On 10/28/21 8:02 PM, blais...@gmail.com wrote: > > > > However, whenever I run CMAKE

Re: [deal.II] Are there known issue between Trilinos 13.0.1 and deal.II?

2021-10-29 Thread blais...@gmail.com
hitecture > extensions are supported on the target CPU. I most often use > "-march=native" unless I'm cross-compiling on a different CPU compared to > where the code is eventually executed. > > Best, > Martin > On 29.10.21 12:47, blais...@gmail.com wrote: > >

Re: [deal.II] Are there known issue between Trilinos 13.0.1 and deal.II?

2021-10-29 Thread blais...@gmail.com
gt; > Possible solution from the second issue: use `-DBUILD_SHARED_LIBS:BOOL=OFF` > or add -undefined dynamic_lookup to CMAKE_CXX_FLAGS > > Best, > > Bruno > On Friday, October 29, 2021 at 9:41:01 AM UTC-4 Wolfgang Bangerth wrote: > >> On 10/29/21 7:10 AM, blais...

[deal.II] Are there known issue between Trilinos 13.0.1 and deal.II?

2021-10-28 Thread blais...@gmail.com
Dear All, I hope you are well. I am trying to compile deal.II on a new cluster in Canada called Narval (named after another cute whale, we love those up north). It uses the following versions of the core library that we need: gcc/9.3.0 openmpi/4.0.3 trilinos/13.0.1 parmetis/4.0.3 p4est/2.2

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

2021-07-22 Thread blais...@gmail.com
Hi Martin, Multiple IDEs work very well with Deal.II. As long as your IDE has good CMAKE support, compiling deal.II with it is a joke. Some IDEs which me and my colleagues have found work very well in the present case: - Jetbrains CLION (this one is not free, but for a reason I don't understand

[deal.II] Re: Smooth particles hydrodynamic implementation in DealII

2022-02-13 Thread blais...@gmail.com
and how to find neighbor particles, I was > looking for a way to access neighbor particles, something like the one that > is used for the cell in step-68 "particle->get_surrounding_cell()". > > Thanks > Hassan > > On Saturday, February 12, 2022 at 6:27:09 AM U

[deal.II] Re: Clemson Computational Math Seminar: Bruno Blais - Feb 4

2022-02-13 Thread blais...@gmail.com
Pleasure was all mine. Thanks for the invite. I consider myself quite lucky to be part of such a vibrant, open and constructive community :)! On Friday, February 11, 2022 at 4:57:39 p.m. UTC-5 Timo Heister wrote: > Hi all, > > The recording of the talk is now available at >

Re: [deal.II] Error when compiling a deal.II app using Trilinos on Apple M1

2022-03-15 Thread blais...@gmail.com
:42:53 p.m. UTC-4 Wolfgang Bangerth wrote: > On 3/14/22 11:24, blais...@gmail.com wrote: > > > *Users/blaisb/work/candi/trilinos-release-12-18-1/include/Tpetra_Import_def.hpp:1171:24: > > > > **error: **no member named 'bind1st' in namespace 'std'; did you mean > &

[deal.II] Error when compiling a deal.II app using Trilinos on Apple M1

2022-03-14 Thread blais...@gmail.com
Dear all, Hope you are well Using the candi master branch, I succeeded in compiling deal.II using candi. Everything was smooth. I don't know who took care of that, but awesome work. When trying to compile an example that uses Trilinos (any), I get the following error that arise from an include

Re: [deal.II] Error when compiling a deal.II app using Trilinos on Apple M1

2022-03-15 Thread blais...@gmail.com
a.m. UTC-4 blais...@gmail.com wrote: > Step-32 worked. I think there was an issue with the way I set-up my dylib. > I'll investigate, but it seems that since I was able to run step-32 with > MPI, I should be ok on my side also :) > I'll keep you informed if this pops up again. >

[deal.II] Opening for a PhD or Post-doc position at Polytechnique Montréal

2022-03-09 Thread blais...@gmail.com
Dear all, Are you interested in the environment and on harnessing renewable energies in chemical processes? Do you have a keen interest in fluid dynamics and computational fluid dynamics? Do you love using deal.II ? Are you interested in multiphase flows? We have a very interesting opening

[deal.II] Way to use the erf function with MuParser?

2022-02-16 Thread blais...@gmail.com
Dear all, I hope you are well? It seems MuParser does not, by default, allow for the use of the error function (erf). We are solving a Stefan problem right now and I'd like to be able to compare the solution to the analytical one to make a unit test out of it. Regrettably, the analytical

Re: [deal.II] Way to use the erf function with MuParser?

2022-02-17 Thread blais...@gmail.com
Awesome, I'll make a PR for it. On Wednesday, February 16, 2022 at 11:33:58 p.m. UTC-5 Wolfgang Bangerth wrote: > On 2/16/22 20:16, blais...@gmail.com wrote: > > > > It seems MuParser does not, by default, allow for the use of the error > > function (erf). We are sol

[deal.II] Re: Smooth particles hydrodynamic implementation in DealII

2022-02-14 Thread blais...@gmail.com
. > > Thanks, > Hassan > > On Sunday, February 13, 2022 at 6:21:42 PM UTC+3:30 blais...@gmail.com > wrote: > >> Dear Hassan, >> There is no way to do that directly in Deal.II >> Lethe adds two classes to achieve this using a coarse and then a fine >> contact d

[deal.II] Re: Smooth particles hydrodynamic implementation in DealII

2022-02-11 Thread blais...@gmail.com
If I may suggest, at that point, I would ask you what you are trying to specifically achieve? If you want to build an SPH code from scratch, this is definitely possible to do using deal.II particle classes (esp. with the exchange and update ghosts functionalities), but this will require a lot

[deal.II] Re: Clemson Computational Math Seminar: Bruno Blais - Feb 4

2022-03-26 Thread blais...@gmail.com
You had me scared there for a moment. Looking forward to this :)! On Friday, March 25, 2022 at 1:15:31 p.m. UTC-4 Timo Heister wrote: > Hi all, > > I am sorry for messing up the title. The talk is of course given on > Monday by Matthias as written in the body of the email. > > Best, > Timo > >

[deal.II] Re: 2D circular mesh extrusion

2023-09-15 Thread blais...@gmail.com
Dear Hadi, The Lethe code to generate all of these cylinders is fully available only. Might as well just reuse it :) Everything starts here: https://github.com/lethe-cfd/lethe/blob/master/source/core/grids.cc#L162 This should help you reproduce these kind of grids On Thursday, September 14,

[deal.II] Re: UMFPACK Proble

2023-09-26 Thread blais...@gmail.com
It seems your deal.II was configured without UMFPACK. Can you give us more information about which operating system you are using and under which conditions you are installing the library? This would greatly help us helping you debug. Most likely you will need to reinstall deal.II with UMFPACK

[deal.II] Two fully-funded open PhD positions at Polytechnique Montréal

2023-10-18 Thread blais...@gmail.com
Dear all, I hope you are well. We have three fully-funded PhD positions open in my group that we are aiming to fill for the Summer 2024 or Fall 2025 semester. They all concern the computer-assisted design of sustainable chemical reactors. This concerns reactors which use alternative energy

[deal.II] AVX and AVX512 instruction detection

2022-04-20 Thread blais...@gmail.com
Dear all, I hope you are well. I was wondering if there was anything specific that had to be done to enable deal.II to leverage AVX and AVX512 instructions on intel processors? By default, it seems that on my intel machine, these vectorization instructions are not detected, e.g.: -- Performing

Re: [deal.II] In example 40, the results are significantly different between the first-order and second-order finite element meshes

2023-11-13 Thread blais...@gmail.com
Changing to Fe1 really alters the solution, so consequently the kelly error estimator will also give you a different error estimation and thus a different mesh adaptation. If your mesh adaptation is based on an error estimator, altering the finite element interpolation order will alter the

Re: [deal.II] Raviart-Thomas elements on shells in 3D

2023-11-13 Thread blais...@gmail.com
If you need any help, feel free to reach out to the deal.II community, we are always glad to help On Sunday, November 5, 2023 at 10:37:42 a.m. UTC-5 M. Bakry wrote: > Dear Wolfgang, > > thanks very much for your answer. I think I will give it a try when I > find some time. Non-C1 manifolds

[deal.II] Re: Using the deal.II video lectures for finite element courses

2022-08-30 Thread blais...@gmail.com
Thank you very much for pointing this reference out. It is highly helpful and I think the community really appreciate you making all these efforts to not only move science forward, but teach it in a better fashion :) On Thursday, August 4, 2022 at 9:47:36 p.m. UTC-4 Wolfgang Bangerth wrote: >

[deal.II] Applying a zero constraints to cell based on material_id

2022-10-31 Thread blais...@gmail.com
Dear all, I hope you are all doing fine :)! I am trying to do some quick testing of something and this would require me applying a zero constraint to a set of cells which have a specific material id. I could surely do that from the weak form, but I was wondering if there was a way to do it

Re: [deal.II] Applying a zero constraints to cell based on material_id

2022-10-31 Thread blais...@gmail.com
relevant) dofs to the AffineConstraints object with add_line(). > > Best, > Daniel > > On Mon, Oct 31, 2022 at 8:36 AM blais...@gmail.com > wrote: > >> Dear all, I hope you are all doing fine :)! >> >> I am trying to do some quick testing of something an

Re: [deal.II] Assemble system slowing down the program

2023-01-07 Thread blais...@gmail.com
There might be many things that can be done to improve the speed of this function. You can ask yourselve the following question as guidance: - Does the function allocate memory? - Could it be inlined? - Are you calling the function inside the DOF loops or inside the quadrature loop? Then I

[deal.II] Re: What's the best strategy to speed up assembly?

2022-12-08 Thread blais...@gmail.com
I am a bit surprised that your assembly is really 100x more expensive than your linear solver. Maybe your assembly code is not optimized? For example, I try to avoid doing as much work as possible during the double loop over DOFs which is the inner most loop. Sometimes pre-calculating things

[deal.II] Control over the "valence" of p4est distributed meshes

2022-12-08 Thread blais...@gmail.com
Dear all, I hope you are well. I know that P4est as a partitioner has limitations compared to other approaches like Metis or Scotch. However, I was wondering if there was anyway to penalize the partitioner in order to generate the smaller valence that is possible? Sometimes we end up with

[deal.II] Re: Solving navier stokes equation gives no convergence

2023-01-27 Thread blais...@gmail.com
Can you tell us a bit more about what you have tried? For example, in the limit of low Re (say Re=0.1 or Re=1) does your non-linear solver converge? Have you tried making a manufactured solution to get your convergence order to see if everything is all fine? RE=200 can be quite heavy for

[deal.II] Re: Fully distributed triangulation with GMSH

2023-03-19 Thread blais...@gmail.com
Dear Kumar, You can monitor the processes using your OS to verify that. If you are loading a relatively large triangulation, this will be very apparent since the memory footprint of one process will be significantly larger. Even a quick "top" will enable you to see this. Best Bruno On

[deal.II] Re: Trouble installing p4est from candi M1 mac

2023-04-07 Thread blais...@gmail.com
What I would suggest is to not use GCC, but instead use the clang compiler native with the Mac M1. At least this is how I did it on my apple M1 macbook pro computer On Thursday, April 6, 2023 at 6:25:13 a.m. UTC-4 malve...@gmail.com wrote: > Good afternoon. > I’m truly sorry to bother you, but

Re: [deal.II] Does deal.ll support import grid from openfoam solver

2023-07-18 Thread blais...@gmail.com
It is maybe unrelated, but as far as I remember, OpenFOAM supports mesh adaptivity. It is maybe not as efficient (and does not include dynamic load balancing) like deal.II does, but I would first start with that. Otherwise, you would need to go through the VTK file format or write your own

[deal.II] Re: Convergence failure in penalty method implementation

2023-07-18 Thread blais...@gmail.com
In addition to Wolfgang's answer. Here are some suggestions. 1. You system is not symmetric. Consequently, it is not a viable idea to use the CG linear solver (see https://en.wikipedia.org/wiki/Conjugate_gradient_method). As suggested, using something like GMRES would be a better idea for your

[deal.II] Re: Using particle class for a collection of beams

2023-05-25 Thread blais...@gmail.com
Dear Vinayak, The particle class is very flexible. You can see it as a Lagrangian container of information for whatever you may need to store information for. I don't foresee any challenges with your approach except if you need to maintain some sort of connectivity between the particles. If you

Re: [deal.II] Re: Tips on writing "versatile" assembly function

2023-06-11 Thread blais...@gmail.com
> else >>> cell(i,j) += viscosity_constant * >>> >>> and improved the performance by making two separate assemblers (note >>> that there is no function call/vtable lookup here, just an "if"). I >>> don't remember how big the difference was, so I went ba

Re: [deal.II] Question about how to get the Stiffness matrix partial derivative with respect to density

2023-08-10 Thread blais...@gmail.com
Dear Lance, It would be easier if you posted the PDE you wish to solve and it's weak form. This would enable us to help you write the Jacobian for it. Currently, it is difficult to fully understand what you are trying to achieve. Best Bruno On Monday, July 24, 2023 at 4:13:21 p.m. UTC-4

[deal.II] Re: prmindent — Indent and format PRM files

2023-08-11 Thread blais...@gmail.com
+1 Paul, god is this script fun On Thursday, August 10, 2023 at 7:18:48 p.m. UTC-4 Paul A. Patience wrote: > Hello everyone, > > Last year I wrote a script to indent PRM files [1] in the Lethe project > [2]. You may find it useful. > > It can be used to recursively indent all PRM files in

Re: [deal.II] Finding AVX instructions always fails at cmake configure step

2023-05-04 Thread blais...@gmail.com
n clusters to be sure the right code gets generated. For example GCC > lists the available architectures to specify here: > > https://gcc.gnu.org/onlinedocs/gcc/x86-Options.html > > Best, > Martin > > > On 04.05.23 14:52, blais...@gmail.com wrote: > > Dear all,

[deal.II] Finding AVX instructions always fails at cmake configure step

2023-05-04 Thread blais...@gmail.com
Dear all, Hope you are well. I have tried a few ways to enable AVX instructions (which I think my 12th Gen Intel(R) Core(TM) i9-12900K) should support, yet I am always unable to do so. At the Cmake configuration step, the AVX steps all fails whereas the SSE ones succeed. How can I remedy this

Re: [deal.II] Liltle help with MUMPS

2023-11-15 Thread blais...@gmail.com
In addition to what Wolfgang wrote, Sometimes the OS will map the cores of a CPU in the following order: Physical-Logical-Physical-Logical-Physical-Logical etc. Consequently, if your processor supports hyperthreading through the use of logical core, running with core 0-1 means you are essentially

[deal.II] Re: Helping collaborators write a cluster module for deal.II

2023-11-15 Thread blais...@gmail.com
Dear David, The Digital Alliance of Canada (Compute Canada) has deal.II on their cluster through the use of the module system: https://docs.alliancecan.ca/wiki/Available_software You could reach out to them and ask them for their module file. They are generallly very chill. If you need help

Re: [deal.II] Minimal deal.ii application loads many surprising dynamic libraries on macos

2024-04-22 Thread blais...@gmail.com
Dear Jack, Interesting you took a look at this. I was always wondering why lethe takes forever to start on my ARM M1 Mac compared to on a regular Linux desktop. Seems you figured it out... However, I am unsure of the solution for this. Orthogonally to this, have you ever managed to have cmake

[deal.II] Re: HELP: How to compute the displacement of a membrane using deal.ii

2024-05-08 Thread blais...@gmail.com
Dear Yufei, We need more information What is not working? Is it compiling? Are the results different? In how are they different? Could you please state the entire weak formulation of your problem and the implementation of said weak formulation (e.g. a code snipper of just the assembler). On

[deal.II] Re: Using MeshWorker to compute norms -- loss of accuracy?

2024-05-08 Thread blais...@gmail.com
Glad you found the issue :) Subtles things often make differences which are hard to capture! On Tuesday, May 7, 2024 at 10:33:58 a.m. UTC-4 Sean Carney wrote: > Update -- the question had an obvious answer! > > The reason for the discrepancy was simply the order of quadrature used. > =D > >