If you just use thermal element, the heat generation is I^2*R/V,
where I is the electrical current in the structure, R is the resistance, V is the corresponding volume.
If you use thermal-electrical element, you can set the electrical resistivity property and then apply the voltage across the structure.