Dear all,


I'd like to extend the problem, below to k disks (k>=1) in one plane.

As a reminder, the objective is to solve the Laplace equation in each disk and in the plane, with a discontinuous condition on the jump at the disks interfaces.

The case with k=1 works when I solve a WF on a mixed function space with one component being V_d (disk) and the other one being V_p (plane). The Heaviside indicators I_d and I_p in the disk and in the plane enable integration on the disk/plane interface with 4*avg(I_d)*avg(I_p)*dS. 


I tried various ways to extend the case k=1 to k>1. For simplification; let's assume k=2 (ie 2 disks);

- 1st way: I solve the same problem as in the case k=1, except that now my disk indicator function is nonzero in both disks (same with the BCs). 

- 2nd way: I define my mixed system as Vd*Vd*Vp (2disks, one plane), with an indicator function for each disk, and one for the plane. 

- 3rd way: I define my mixed system as Vd*Vp where Vd is a VectorFunctionSpace of dim k, and Vp is of dim 1. The disk indicator functions are defined on a VectorFunctionSpace as well;


I have tried the 3 methods and none of them converged. 

Should one of these methods work or should I solve my problem differently ?


Many thanks,

Floriane





De : firedrake-bounces@imperial.ac.uk <firedrake-bounces@imperial.ac.uk> de la part de Ham, David A <david.ham@imperial.ac.uk>
Envoyé : vendredi 5 octobre 2018 15:56
À : firedrake
Objet : Re: [firedrake] local discontinuity
 

Dear Floriane,

 

I think you can do this in a manner analogous to the way that Thomasz did fluid-structure interaction.

 

We define a mixed function space with two continuous components: (V_d, V_p). We’re going to use the first component for the solution in the disk and the second component for the solution outside the disk.

 

We further define two DG0 functions I_d and I_p such that I_d is 1 inside the disk and 0 outside, and I_p = 1 – I_d.

 

You can now write the Laplace equation for the two parts using essentially normal Firedrake code except that you multiply the test function by the appropriate indicator function. This ensures that you only actually assemble integral contributions on the correct part of the domain.

 

Now we just need the surface integral over the facets on the edge of the disk. Observe that this is the only place in the domain where both indicator functions are positive. You can write your jump integrals using the  *dS measure. You can restrict the intervals to the relevant edges by multiplying the integrand by 4*avg(I_p)*avg(I_d).

 

If

W = V_d * V_p

and

u_d, u_p = TrialFunctions(W)

 

then you can write the jump as:

 

avg(u_d) – avg(u_p)

 

The avg is mathematically unnecessary and does nothing, however in UFL all terminals that appear in dS integrals have to be restricted (you could just as well write u_d(‘+’) – u_p(‘+’)).

 

Finally, when you come to the solve, you need to ensure that all the V_d nodes outside the disk are eliminated, and all the V_p nodes inside the disk too. You do this using the same DirichletBC subclassing trick which is in https://www.firedrakeproject.org/demos/linear_fluid_structure_interaction.py.html


 

I realise that is slightly involved, but it should work and the syntax will be fairly clean once you have done it. Feel free to ask for clarifications.

 

Regards,

 

David

 

 

From: <firedrake-bounces@imperial.ac.uk> on behalf of "Floriane Gidel [RPG]" <mmfg@leeds.ac.uk>
Reply-To: firedrake <firedrake@imperial.ac.uk>
Date: Friday, 5 October 2018 at 15:33
To: firedrake <firedrake@imperial.ac.uk>
Subject: [firedrake] local discontinuity

 

Dear Firedrakers,

 

I would like to solve equations in a domain made of two subdomains:

- a disk, inside which test functions are continuous (Omega_d)

- a plane around the disk, in which test functions are continuous (Omega_p)

However, I would like the test functions to be discontinuous across the interface Gamma between the disk and the surrounding plane.

This is to solve Laplace equation in each domain, augmented by a dynamic boundary condition on the jump between the two domains, that is

Delta u = 0 in Omega_d

Delta u = 0 in Omega_p

partial_t [u] = ...   on Gamma, where [u]= u(+)-u(-) is the jump

 

Is there a way to define a functionspace on the full mesh, with continuous basis functions in each subdomain but discontinuous across the interface ? Or is there any better way to solve this kind of system ?

 

Thank you for your help,

 

Floriane