0

I have a few questions about a specific part of the Matlab FEM solver because the documentation isn't clear from what I can see:

  1. For this specific problem statement I cannot figure out what are the units of the current density specified in the line:
electromagneticSource(model3D,"CurrentDensity",@windingCurrent3D,"Cell",3)

Is this Amps/m^2, Amps/m^3, etc.? I'm not sure why this isn't specified in the documentation. I am assuming it should be m^-2 but I am not sure.

  1. The function it calls "@windingCurrent3D" has two input arguments called "region" and "~". I don't understand why there are two input arguments for this function and again, it doesn't specify how and why it is able to accept an input when the example isn't showing an input argument being defined when the function is called here. Moreover, it is saying that it is taking some input called "region", and breaks it down into Cartesian components but where are these coming from?
function f3D = windingCurrent3D(region,~)
[TH,~,~] = cart2pol(region.x,region.y,region.z);
f3D = -5E6*[sin(TH); -cos(TH); zeros(size(TH))];
end
  1. If I want to specify a given, total current I for the solenoid, how can I pass this into the windingCurrent3D function? Or can I just define my own within my version of the code that doesn't need to call a separate function file? This is something else that the documentation doesn't elaborate on: What are all the objects that I can pass as input arguments for "CurrentDensity"?

I wish this documentation went into more detail as to what's going on here. Even when reading other example use cases and problems with this toolbox, I am not seeing any explanations for current density explicitly and so I am very confused.

I believe it is a current density of A/m^2 and so I tried just inputting constants into it, but the solver throws an error back at me, which makes me think that the direction needs to also be specified, not just the magnitude. However, again I have no idea what this input argument is expecting since the documentation doesn't explicitly define it.

Jonas
  • 121,568
  • 97
  • 310
  • 388
Sophia
  • 3
  • 3

0 Answers0