[aspect-devel] How to grab the radius of every interior sphere made up from cell faces in the domain and some MPI questions

Ian Rose ian.rose at berkeley.edu
Sun Oct 25 09:49:31 PDT 2015


On Sun, Oct 25, 2015 at 9:43 AM, Wolfgang Bangerth <bangerth at tamu.edu>
wrote:

> On 10/25/2015 11:32 AM, Ian Rose wrote:
>
>> That is almost what I am describing, but I am also questioning whether it
>> is
>> necessary to do the binning in radius. A general multipole expansion is
>> already written in terms of an integral over volume. The traditional
>> approach
>> of splitting that up into radial slices is nice for a spherical harmonic
>> transform, but I do not think it is strictly required. That is to say, the
>> formula Wolfgang and Shangxin wrote have pulled the radius out of the
>> integral, and we could just keep it in there.
>>
>
> Correct. In general, however, you need to expand the function drho(x,y,z)
> in terms of something that takes into account radius and angles, i.e., you
> have to have a basis of functions in radial direction as well. Whether you
> want to use piecewise constants (i.e., the characteristic functions of
> spherical shells) or a polynomial basis in radial direction is a choice one
> can make. The generalization of the formula I stated would be to have to
> compute integrals of the form
>
> r_{lmi} =
>     \int \int \int  drho(r,phi,theta) Y_{lm} R_i(r) dtheta dphi dr
>
> where R_i(r) are the basis functions in radial direction.
>
> ​Ah, but this is the beauty of the multipole expansion. As long as all the
mass sources are completely external or completely internal to our
circumscribing sphere, then the radial functions are entirely determi​ned,
and are just powers of r (where the power is related to the order of the
multipole and whether it is external or internal).

>
> The downside of this (as Rene pointed out) is that extra work would be
>> required to get the values of the potential at points interior to the
>> domain.
>> The radially binned approach has a very natural (if expensive) way to do
>> that.
>> But if we are only interested in the potential at the surface and the CMB,
>> then this would be enough.
>>
>
> Correct. If you only need it for postprocessing, then it probably doesn't
> matter which way you do it because you don't necessarily want to do it in
> every time step.
>
> It's a different matter if you want to use this to compute the gravity
> potential because you want to compute the gravity vector at every point. In
> that case...
>
> That being said, if we really wanted the internal potential, it would not
>> be
>> too expensive to do a basic finite-element Poisson solve for the interior,
>> since we have the appropriate boundary conditions after the expansion.
>>
>
> ...it would indeed be possibly to think about solving a Poisson equation
> instead that gives us the potential as a finite element field that is
> easily evaluated at all points.
>
> Best
>  W.
>
>
>
> --
> ------------------------------------------------------------------------
> Wolfgang Bangerth               email:            bangerth at math.tamu.edu
>                                 www: http://www.math.tamu.edu/~bangerth/
>
> _______________________________________________
> Aspect-devel mailing list
> Aspect-devel at geodynamics.org
> http://lists.geodynamics.org/cgi-bin/mailman/listinfo/aspect-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.geodynamics.org/pipermail/aspect-devel/attachments/20151025/28cb596f/attachment-0001.html>


More information about the Aspect-devel mailing list