lyc102 / ifem

iFEM is a MATLAB software package containing robust, efficient, and easy-following codes for the main building blocks of adaptive finite element methods on unstructured simplicial grids in both two and three dimensions.
https://lyc102.github.io/ifem/
GNU General Public License v3.0
185 stars 73 forks source link

CahnHillard Benchmark #3

Open Batmanabcdefg opened 4 years ago

Batmanabcdefg commented 4 years ago

Hello! so far it seems that the periodic boundary conditions are not applied for CahnHillard Benchmark?

Best regards!

lyc102 commented 4 years ago

Periodic boundary condition requires special treatment. I will add it later on.

scaomath commented 7 months ago

Periodic boundary condition requires special treatment. I will add it later on.

Is it worth adding it maybe for a future student project?

@Batmanabcdefg do you still need this? If not using Long's cryptic sparse matrix manipulation. A simple tweak based on the current data structure would be (let us assume only left and right are periodical the rest is the Dirichlet):

A more ifemish change would be changing the number indicator in the bdFlag tradition, for example, 4 represents the BC are periodical there.