Thank you for the responds. You are partially right, It is possible however also to achieve a small field without current. I managed with the activation of the mhd module in ansys. In the next step i try to create an UDF for defining an AC voltage on the walls as a boundary condition. I am sorry to ask this question, I hate when people post random UDF codes, expecting that other help them but I really struggle with this one. So my code looks like this:
Error: C:/Users/49157/AppData/Local/Temp/voltage.c.6596.0.c: line 18: parse error.
Error: C:/Users/49157/AppData/Local/Temp/voltage.c.6596.0.c: line 24: parse error.
Again, I am sorry if this is not the correct place for debugging codes but could you at least give me a small hint.