Variable boundary condition

Hello,

I want to apply a functional base boundary condition to a section of the domain. Kindly comment for the correctness on the given code:

func f1= x*y; //// boundary condition

…+ on( boundary, var = f1) ; // implementing bc on a domain

Or, help me if any relevant example is available.

Dear sumantkr,

if f1 is a finite element function when you can change;

Vh f1=x*y;

problem PB1( …+ on( boundary, var = f1) ; // implementing bc on a domain

PB1; // solve with x¨*y

f1=xyy;
PB1; // solve with xyy;

1 Like