This is a read only copy of the old FEniCS QA forum. Please visit the new QA forum to ask questions

Periodic boundary mapping to a function

0 votes

Hi,
I would like to create something like a map for a function I read from an external source such that it is periodically repeated along the meshed region of a functionspace

i.e. I have the values in a limited region from [0,a], I would like to interpolate it to a functionspace to represent it (at a particular mesh optimization level in auto adaptive algorithm) and I would like to map anything that asks the value i.e (x,a+c) from that functionspace to be redirected to interpolated value at (x,c.)

my first naive attempt of using a constrained domain in a functionspace lead to some very strange results.

my second naive attempt resulted in data being actually repeated, resulting in huge waste of memory.

thanks!
(extra appreciation for answers in python)

asked Aug 29, 2015 by obm FEniCS Novice (680 points)

Hi, can you post the code for the naive attempt?

...