Using mapping as manifold

25 views
Skip to first unread message

Praveen C

unread,
Oct 10, 2021, 3:07:03 AM10/10/21
to Deal. II Googlegroup
Dear all

I want to transform a cartesian grid with my own transformation which is defined by a formula.

I have done this and created a MappingFEField as in this example

https://bitbucket.org/cpraveen/deal_ii/src/master/mapping_fe_field/

Saving to vtu format I can see it is working.

https://bitbucket.org/cpraveen/deal_ii/src/master/mapping_fe_field/grid.png

But is it possible to use this mapping as a manifold that I can attach to the triangulation ?

If not what other methods are there to tell the triangulation about the transformation ?

Should I try to combine MappingManifold and MappingFEField ?

Thanks
praveen

Wolfgang Bangerth

unread,
Oct 12, 2021, 12:00:25 AM10/12/21
to dea...@googlegroups.com
On 10/10/21 1:06 AM, Praveen C wrote:
> Should I try to combine MappingManifold and MappingFEField ?

Have you tried to use MappingManifold? It is, in essence, the same as using first
VectorTools::interpolate
to convert your mapping function into a finite element function, and then
using MappingFEField to use that finite element function to map a
triangulation. I think it does what you describe you want, though I don't
quite understand why you think you would need to combine the two.

Best
W.

--
------------------------------------------------------------------------
Wolfgang Bangerth email: bang...@colostate.edu
www: http://www.math.colostate.edu/~bangerth/

Reply all
Reply to author
Forward
0 new messages