I have a domain with two different regions ( region 1 and region 2). I need to define a function for permittivity so that in region 1 it considers the permittivity of air but in the region 2 another permittivity.
Does this command is proper to get this goal:
real ep = 12;
real er= 1;
func erregion = (region == 1 ? er : ep);
I get error via this command;
can you please help me in defining proper command for permittivity of a domain with 2 regions ? Its like considering a dielectric object in free space.
Thanks for your quick response. I changed sth and it works now.
The problem by defining as func erregion = (region == 1 ? er : ep); was that when I changed it to " func erregion = (region == 2 ? ep : er); " , the solotion became different. I guess it was just considering the first permittivity not other one.