Hello,

I using openEMS since 3 days, so I am very very big beginner.

I looking the SetMaterialProperty to make a lossy materials...

But the example in the comment didn't show any complex value example for 'Epsilon'

So I asking, is it possible to put some complex Epsilon, or lossy matter's property ?

If yes could you show me an example...

Moreover I feel that the description of function (in comment in each function definition) are not extensive, I am right ? If yes, where can I find a complete description of every function ?

I also would like to thanks for this so beautiful software. I really enjoy it.

Thank you for answering.

## lossly material

**Moderator:** thorsten

### Re: lossly material

Hi,

first of all, yes the descriptions (especially for SetMaterialProperty) is still very sparse unfortunately.

I'm thinking about starting a User-Manual using LaTex but this would be still a long way to go and I would need some help to get this done...

To your problem:

Yes you can simulate lossy material, but so far you can only define a material conductivity (kappa).

The reason for that is, FDTD is a time-domain method and complex material (real and imaginary part) properties can not be applied to a time-domain method, since it is a frequency domain concept.

But here is what you can do that will work in a small frequency range:

You have:

-->

Or in case you have a loss tangens (tanD):

-->

Apply this to openEMS:
But keep in mind, this is only exact for f_0 and a good approximation close to f_0! And please recheck the formulas given above, I tend to mess them up

Maybe in the future there will be a Drude material model included in openEMS, this will allow to model material losses over a broader frequency range.

I hope this helps,

regards

Thorsten

first of all, yes the descriptions (especially for SetMaterialProperty) is still very sparse unfortunately.

I'm thinking about starting a User-Manual using LaTex but this would be still a long way to go and I would need some help to get this done...

To your problem:

Yes you can simulate lossy material, but so far you can only define a material conductivity (kappa).

The reason for that is, FDTD is a time-domain method and complex material (real and imaginary part) properties can not be applied to a time-domain method, since it is a frequency domain concept.

But here is what you can do that will work in a small frequency range:

You have:

*epsilon_r = eps_r_real + j * eps_r_imag*at frequency*f_0*-->

*kappa = eps_r_imag * (2*pi*f_0) * epsilon_0*Or in case you have a loss tangens (tanD):

-->

*kappa = tanD * 2*pi*f_0 * epsilon * eps_r*Apply this to openEMS:

Code: Select all

```
CSX = AddMaterial( CSX, 'LossyMat' );
CSX = SetMaterialProp(CSX,'LossyMat','Epsilon', eps_real, 'Kappa', kappa);
<add your primitives>
```

Maybe in the future there will be a Drude material model included in openEMS, this will allow to model material losses over a broader frequency range.

I hope this helps,

regards

Thorsten

### Re: lossly material

Thank you very much thorsten for this precise answer,

I am really glad that we can set conductivity, even for a small frequency range of precision.

I am hurry to see the implement of Drude model, and the LaTeX book of function.

So good luck, and congratulation.

openEMS is really great. I hope this free source will have a very very long life.

I am really glad that we can set conductivity, even for a small frequency range of precision.

I am hurry to see the implement of Drude model, and the LaTeX book of function.

So good luck, and congratulation.

openEMS is really great. I hope this free source will have a very very long life.

### Re: lossly material

Drude model is already included for a long timeI am hurry to see the implement of Drude model, and the LaTeX book of function.

Take a look at "examples/other/Metamaterial_Plane_Wave.m" in the openEMS folder...

But so far it is only the lossless model... maybe soon I will add the losses and make it a full Lorentz-Type model...

regards