Thank you Juan, for sharing your code. I am you have solved your problem.

You've also partially solved (and reminded me of) a similar problem I was
working on many years (where I failed).

I will return to that problem in the near future and I will be implementing
your solution to it. :-)

Thanks.

Best,
   Toby


07.04.2017 15:24 "Juan Carlos Araujo Cabarcas" <[email protected]>
napisał(a):

> In the same spirit I would like to share a code that uses ChartManifold,
> for generating a mapping of an ellipse applied to HyperBall.
>
> El miércoles, 5 de abril de 2017, 14:47:17 (UTC+2), Juan Carlos Araujo
> Cabarcas escribió:
>>
>> Dear all,
>> I recently found the thread: Something wrong with ChartManifold when
>> chartdim=1:
>>     https://groups.google.com/forum/#!topic/dealii/Sfo9xKoeRpw
>> a more straight answer to this thread.
>>
>> I took the liberty to copy David's code and modify it, so that the upper
>> face of a square follows: y(x)=0.25*sin(PI*x) + 1.
>> The function is not the same as I first proposed, but from this example
>> it is pretty clear how to proceed.
>> The result is plotted in the attached .png, along with a variation from
>> step-10 in the deal.ii tutorial.
>>
>> I hope this may be of any use to somebody!
>>
>> Juan Carlos Araújo,
>> Umeå Universitet
>> El martes, 9 de febrero de 2016, 17:10:51 (UTC+1), Juan Carlos Araujo
>> Cabarcas escribió:
>>>
>>> Dear all,
>>>
>>> I am working with the wave equation with variable refractive indexes
>>> within the domain.
>>> I receive meshes that come from a shape optimization routine, and my
>>> task is to
>>> run on arbitrarily curved elements resulting from the optimization.
>>> Step-10 and others show how to use mappings and Manifolds to curve
>>> elements following basic shapes like circles, cylinders etc.
>>>
>>> My guess is that it should be possible in deal.II to define my own
>>> Manifolds based on how I want to bend my edges (optimization routine).
>>>
>>> I have prepared a very basic example on the matlab code attached that
>>> has the info to plot the attached figure. There, the edges follow the
>>> equation |x|^p + |y|^p=1, with p=6.
>>>
>>> It would be very illustrative to apply a mapping like what is done in
>>> step-10 on a circle, but for the presented case. I would appreciate any
>>> advise on how to achieve this, hopefully wth this example =)
>>>
>>> Thanks in advance!
>>>
>>> Juan Carlos Araújo-Cabarcas
>>> Umeå Universitet.
>>>
>>>
>>> --
> 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 [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to