Modelling circuit elements

Hi,

I want to model circuit elements similar to commercial software Ansys or Comsol. Is there a way to do that or is there any alternate available instead in FEniCS?.

Hi,

I don’t know which model you want to combine with circuit elements, so I will assume that you mean wave equation in time domain.

If you are using Whitney edge elements (N1curl) you can use the approach from [1]. It allows a fairly easy incorporation of linear circuit elements connected to the edges of your computational mesh. What you have to do is to build matrices [G], [C] and [M] based on the values of the lumped conductances, capacitances and inductances. After that you add the matrices to your regular formulation.

Keep in mind that you will have to find Degrees of Freedom for each edge that you want to augment with circuit element.

[1] M. Feliziani and F. Maradei, “Modeling of electromagnetic fields and electrical circuits with lumped and distributed elements by the WETD method,” in IEEE Transactions on Magnetics , vol. 35, no. 3, pp. 1666-1669, May 1999, doi: 10.1109/20.767333.

Hi,
Thanks for your suggestion. I want to connect lumped resistor to my 3D TEG model. currently am able to simulate my multiphysics 3D thermoelectric generator model in fenics. My goal is to connect lumped resistor across the terminals of TEG model as shown below.
Figure a) without load resistor
image
Figure b) with load resistor
image

My question is how is it possible to connect the load resistor across the terminals of TEG.

Regards,
Gunasheela