Re: [deal.II] Problem about cell iterator

2021-11-12 Thread Toddy Liu

Hello, Jean

I'll look at the material and have a try. Thanks for your help

Best,
Toddy
在2021年11月13日星期六 UTC+8 上午1:03:04 写道:

> Hi Toddy,
>
> It’s possible to convert a triangulation iterator to a DoF iterator using 
> the technique described here:
>
> https://github.com/dealii/dealii/wiki/Frequently-Asked-Questions#can-i-convert-triangulation-cell-iterators-to-dofhandler-cell-iterators
> So one way would be just to loop over the triangulation and convert that 
> to a velocity DoFHandler iterator and a pressure DoFHandler iterator. But 
> it looks to me that you can convert between iterators in the same manner, 
> so if you want you could also just use a standard loop over (DoF) cell 
> iterators, and convert that primary iterator to the other kind.
>
> I hope that this helps!
>
> Best,
> Jean-Paul
>
>
> On 12. Nov 2021, at 04:22, Toddy Liu  wrote:
>
> Dear Deal.II community,
>
> I'm programming on modifying step 35 using Parallel computing with 
> multiple processors using distributed memory. In step35, the tutorial 
> program used "synchronous" iterator which consists of two iterators, one 
> for velocity and the other for pressure.
>
> Now I'm struggling with the cell iterator when I assemble system. In step 
> 40,  it's enough to access cells using access like
> " const auto  : dof_handler.active_cell_iterators()". But how can I 
> do this when the assemble_system needs two iterators (in my case one for 
> velocity and the other for pressure)?
>
> Any advice or suggestions will be appreciated!
> Thank you.
>
> Best,
> Toddy
>
> -- 
> The deal.II project is located at http://www.dealii.org/
> For mailing list/forum options, see 
> https://groups.google.com/d/forum/dealii?hl=en
> --- 
> You received this message because you are subscribed to the Google Groups 
> "deal.II User Group" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to dealii+un...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/dealii/cb916c9f-c84c-4f94-86b9-360e0e19c7b4n%40googlegroups.com
>  
> 
> .
>
>
>

-- 
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dealii+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/05cc5028-4f2d-4106-8af0-9f3c9a3f0743n%40googlegroups.com.


Re: [deal.II] Building error

2021-11-12 Thread Naren Vohra

It worked! Thank you so much! 
On Wednesday, November 10, 2021 at 10:53:02 AM UTC-8 Wolfgang Bangerth 
wrote:

> On 11/9/21 4:23 PM, Naren Vohra wrote:
> > 
> > #CMAKE_CXX_COMPILER: GNU 5.4.0 on platform Linux x86_64
> > #/usr/bin/c++
>
> Naren -- I'm not sure any of us still test with this compiler. It is by 
> now 5 years old (the whole 5.x release branch is in fact 6 years old), 
> and it is quite possible that that compilers has bugs that manifest with 
> our code base.
>
> That leaves you with two options:
> * You upgrade your compiler to something more recent.
> * You can try to edit the symmetric_tensor.h file and remove the 
> occurrence of DEAL_II_CONSTEXPR in front of the determinant() function. 
> I don't know whether that's going to lead to downstream problems, but it 
> might be worth trying.
>
> Best
> W.
>
> -- 
> 
> Wolfgang Bangerth email: bang...@colostate.edu
> www: http://www.math.colostate.edu/~bangerth/
>

-- 
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dealii+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/f1945ad4-78a8-4535-9dcc-890c0d7e08b6n%40googlegroups.com.


Re: [deal.II] Problem about cell iterator

2021-11-12 Thread Jean-Paul Pelteret
Hi Toddy,

It’s possible to convert a triangulation iterator to a DoF iterator using the 
technique described here:
https://github.com/dealii/dealii/wiki/Frequently-Asked-Questions#can-i-convert-triangulation-cell-iterators-to-dofhandler-cell-iterators
 

So one way would be just to loop over the triangulation and convert that to a 
velocity DoFHandler iterator and a pressure DoFHandler iterator. But it looks 
to me that you can convert between iterators in the same manner, so if you want 
you could also just use a standard loop over (DoF) cell iterators, and convert 
that primary iterator to the other kind.

I hope that this helps!

Best,
Jean-Paul


> On 12. Nov 2021, at 04:22, Toddy Liu  wrote:
> 
> Dear Deal.II community,
> 
> I'm programming on modifying step 35 using Parallel computing with multiple 
> processors using distributed memory. In step35, the tutorial program used 
> "synchronous" iterator which consists of two iterators, one for velocity and 
> the other for pressure.
> 
> Now I'm struggling with the cell iterator when I assemble system. In step 40, 
>  it's enough to access cells using access like
> " const auto  :   dof_handler.active_cell_iterators()". But how can I do 
> this when the assemble_system needs two iterators (in my case one for 
> velocity and the other for pressure)?
> 
> Any advice or suggestions will be appreciated!
> Thank you.
> 
> Best,
> Toddy
> 
> -- 
> The deal.II project is located at http://www.dealii.org/ 
> 
> For mailing list/forum options, see 
> https://groups.google.com/d/forum/dealii?hl=en 
> 
> --- 
> You received this message because you are subscribed to the Google Groups 
> "deal.II User Group" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to dealii+unsubscr...@googlegroups.com 
> .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/dealii/cb916c9f-c84c-4f94-86b9-360e0e19c7b4n%40googlegroups.com
>  
> .

-- 
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dealii+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/7AB97D98-013B-4832-827A-DC761AD095BA%40gmail.com.


[deal.II] deal.II Newsletter #190

2021-11-12 Thread 'Rene Gassmoeller' via deal.II User Group
Hello everyone!

This is deal.II newsletter #190.
It automatically reports recently merged features and discussions about the 
deal.II finite element library.


## Below you find a list of recently proposed or merged features:

#12937: Improve assert message in DictionaryPayLoad (proposed by peterrum) 
https://github.com/dealii/dealii/pull/12937

#12936: MatrixFreeFunctions::ConstraintKinds: rename and reorder (proposed by 
peterrum; merged) https://github.com/dealii/dealii/pull/12936

#12935: Improve an error message. (proposed by bangerth; merged) 
https://github.com/dealii/dealii/pull/12935

#12934: Mark FEValuesExtrator objects as 'const'. (proposed by bangerth; 
merged) https://github.com/dealii/dealii/pull/12934

#12932: FEValues: simplify CellIteratorBase (proposed by peterrum; merged) 
https://github.com/dealii/dealii/pull/12932

#12931: Optimize particle generation (proposed by gassmoeller) 
https://github.com/dealii/dealii/pull/12931

#12930: FEValues: explicitly instantiate functions (proposed by peterrum) 
https://github.com/dealii/dealii/pull/12930

#12929: Rename some tests (proposed by peterrum; merged) 
https://github.com/dealii/dealii/pull/12929

#12928: minor MGRepartining edits (proposed by tjhei; merged) 
https://github.com/dealii/dealii/pull/12928

#12927: Minor fixes to `predict_error` doc. (proposed by marcfehling; merged) 
https://github.com/dealii/dealii/pull/12927

#12926: Update predict_error doc entry (proposed by gfcas; merged) 
https://github.com/dealii/dealii/pull/12926

#12924: MGTwoLevelTransfer (p): add fallback FE case (proposed by peterrum) 
https://github.com/dealii/dealii/pull/12924

#12923: Enable FETools::get_projection_matrix() for multiple components 
(proposed by peterrum; merged) https://github.com/dealii/dealii/pull/12923

#12925: Fix typo (proposed by peterrum; merged) 
https://github.com/dealii/dealii/pull/12925

#12922: CylindricalManifold: make member variable const. (proposed by 
marcfehling; merged) https://github.com/dealii/dealii/pull/12922

#12921: N_Vector now returns a pointer to MPI_Comm (proposed by sebproell; 
merged) https://github.com/dealii/dealii/pull/12921

#12920: Add signed distance function for 1D and 2D ellipsoids (proposed by 
nmuch; merged) https://github.com/dealii/dealii/pull/12920

#12918: [9.3] add changelog entry for point release (proposed by tamiko; 
merged) https://github.com/dealii/dealii/pull/12918

#12917: add changelog entry for point release (proposed by tamiko; merged) 
https://github.com/dealii/dealii/pull/12917

#12915: [9.3.2] Revert "Remove copy from SUNDIALS::KINSOL" (proposed by 
masterleinad; merged) https://github.com/dealii/dealii/pull/12915

#12913: ParticleHandler: Store vector of particles per cell in std::list 
(proposed by kronbichler; merged) https://github.com/dealii/dealii/pull/12913


## And this is a list of recently opened or closed discussions:

#12933: Error with distribute_sparsity_pattern (opened) 
https://github.com/dealii/dealii/issues/12933

#12914: Compilation error when using Sundials and MPICH (closed) 
https://github.com/dealii/dealii/issues/12914


A list of all major changes since the last release can be found at 
https://www.dealii.org/developer/doxygen/deal.II/recent_changes.html.


Thanks for being part of the community!


Let us know about questions, problems, bugs or just share your experience by 
writing to dealii@googlegroups.com, or by opening issues or pull requests at 
https://www.github.com/dealii/dealii.
Additional information can be found at https://www.dealii.org/.

-- 
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dealii+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/618e9da9.1c69fb81.72950.287fSMTPIN_ADDED_MISSING%40gmr-mx.google.com.


[deal.II] PhD position at Norwegian University of Science and Technology, Trondheim

2021-11-12 Thread andre . massing
Dear all, 

the following information might be of interest to you or some of your
students. 
 
Currently, we have a PhD fellowship in computational mathematics
available at
the Department of Mathematical Sciences at the Norwegian University of
Science and Technology (https://www.ntnu.edu/imf ). Application
deadline is November, 30.

In particular, we are looking for applicants who have already 
some experience in implementing FEM schemes using deal.ii
or similar open source finite element libraries such as mfem, dune,
FEniCS,
Firedrake, NGSolve, or Gridap
 
The PhD project will focus on the development and application of novel
computational
tools for the accurate and efficient simulation and optimization of
complex
multiphysics problems arising  in large-scale
liquid hydrogen transport.
 
For further details and to apply, please
visit https://tinyurl.com/5d7733xp . 
 
Best,
André

-- 
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dealii+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/e1b354c75514fd992c39146d0738867484a723f8.camel%40gmail.com.