[deal.II]Change from dealii-9.0.0 to deal.ii-9.2.0

200 views
Skip to first unread message

陈敏

unread,
Apr 8, 2021, 12:14:51 PM4/8/21
to dea...@googlegroups.com
Dear all, 
From the website[The deal.II Library: Changes between Version 9.1.1 and 9.2.0], I knew that <deal.II/grid/tria_boundary_lib.h> have been removed:

Removed: The deprecated headers deal.II/grid/tria_boundary.h and deal.II/grid/tria_boundary_lib.h have been removed.
 
In dealii-9.2.0, is there anyway to use some functions to realize the same function like the following codes which must include <deal.II/grid/tria_boundary_lib.h> and will work in dealii-9.0.0?

static const HyperBallBoundary<dim> boundary(p,radius);
  triangulation.set_boundary (80, boundary);
 
Best,
Chen

Wells, David

unread,
Apr 8, 2021, 12:21:38 PM4/8/21
to dea...@googlegroups.com
Hi Chen,

No and yes - the same functionality has been moved into the Manifold classes, which are much more general than the old Boundary classes. For example, GridGenerator::hyper_ball automatically attaches a SphericalManifold to the boundary of the input Triangulation, which achieves the same result as attaching a HyperBallBoundary.

More information is available at the module page:


Do you need to do anything more complex than generate a spherical geometry? If not, using SphericalManifold in place of HyperBallBoundary should do most of what you need to do (though, again, this is now done automatically by the grid generator functions).

Best,
David Wells

From: dea...@googlegroups.com <dea...@googlegroups.com> on behalf of 陈敏 <hkch...@gmail.com>
Sent: Thursday, April 8, 2021 12:14 PM
To: dea...@googlegroups.com <dea...@googlegroups.com>
Subject: [deal.II]Change from dealii-9.0.0 to deal.ii-9.2.0
 
--
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/CADr3Od%2BesQJwRh1nsbHK7V%2Bk%3D1Co87wFpFGE1OJY3A4soNsHpg%40mail.gmail.com.

陈敏

unread,
Apr 8, 2021, 12:25:32 PM4/8/21
to dea...@googlegroups.com
Dear David,
Thanks for your reply, it’s enough, I will read the document.
Sincerely,
Chen

Reply all
Reply to author
Forward
0 new messages