Group Abstract Group Abstract

Message Boards Message Boards

Solve the Laplace equation of a circular loop using NDSolveValue ?

Posted 8 years ago

Hi I would like to know how to solve the Laplace equation of a circular loop using NDSolvevalue and cylindrical coordinates. If anyone could help me, I would be very grateful.

POSTED BY: Alvaro Martínez
15 Replies
POSTED BY: Alvaro Martínez

And how can I use the vector potential?, I'm sorry but I start to use this program a few weeks ago I only know how to use the scalar potential in NDSolvevalue

POSTED BY: Alvaro Martínez

We have considered the case of a permanent magnet. In the case when there is an electric current in the loop, the vector potential should be used, then the equation will be different.

Mmm ok, my case is a little bit different because the intensity circules inside the loop but it could me help me, thank you very much

POSTED BY: Alvaro Martínez

For a static case with constant magnetization, we use the scalar potential, for example

L1 = 5; L2 = 5; R1 = 1.5; L3 = 3;
Subscript[\[ScriptCapitalR], 1] = 
  ImplicitRegion[x^2 + (y - R1)^2 < .25, {x, y}];
Subscript[\[ScriptCapitalR], 2] = 
   ImplicitRegion[x^2 + (y + R1)^2 < .25, {x, y}];;
Subscript[\[ScriptCapitalR], 3] = 
  RegionUnion[Subscript[\[ScriptCapitalR], 1], 
   Subscript[\[ScriptCapitalR], 2]];
Subscript[\[ScriptCapitalR], 4] = 
 ImplicitRegion[-L1 <= x <= L1 && -L2 <= y <= L2, {x, 
   y}]; Subscript[\[ScriptCapitalR], 5] = 
 ImplicitRegion[-L3 <= x <= L3 && -L3 <= y <= L3, {x, 
   y}]; \[ScriptCapitalR]p = 
 RegionDifference[Subscript[\[ScriptCapitalR], 5], 
  Subscript[\[ScriptCapitalR], 3]];
\[ScriptCapitalR] = 
  RegionDifference[Subscript[\[ScriptCapitalR], 4], 
   Subscript[\[ScriptCapitalR], 3]];
RegionPlot[\[ScriptCapitalR]]
Us = NDSolveValue[{y*\!\(
\*SubsuperscriptBox[\(\[Del]\), \({x, y}\), \(2\)]\(u[x, y]\)\) == -D[
      u[x, y], y], 
   DirichletCondition[u[x, y] == Sin[Pi*x], x^2 + (y - R1)^2 == .25], 
   DirichletCondition[u[x, y] == Sin[Pi*x], x^2 + (y + R1)^2 == .25]},
   u, {x, y} \[Element] \[ScriptCapitalR], 
  Method -> {"FiniteElement", 
    "MeshOptions" -> {"MaxCellMeasure" -> 0.0005}}]
H = -{D[Us[x, y], x], D[Us[x, y], y]};
{ContourPlot[Us[x, y], {x, y} \[Element] \[ScriptCapitalR]p, 
 Contours -> 20, FrameLabel -> {"z", "y"}, PlotRange -> All, 
 PlotLabel -> "\[CapitalPsi]", PlotLegends -> Automatic, 
 ColorFunction -> "TemperatureMap", PlotPoints -> 50], StreamDensityPlot[H, {x, y} \[Element] \[ScriptCapitalR]p, 
  PlotRange -> All, FrameLabel -> {"z", "y"}, 
  AspectRatio -> Automatic, StreamPoints -> Automatic, 
  StreamScale -> Automatic, ColorFunction -> Hue, 
  PlotLegends -> Automatic]}

Fig.2

POSTED BY: Alvaro Martínez

The intensity circules in a circular loop with radio 10 m with circular section whose radio is 0,5 m

POSTED BY: Alvaro Martínez

Yes! But it has circular section

POSTED BY: Alvaro Martínez

Because I want to represent de potential vector and the magnetic field of a toroid, please if you know the answer, it would very usefull for me.

POSTED BY: Alvaro Martínez
POSTED BY: Alvaro Martínez

YOu will need to apply the Coordinate Transformations . This is because the plot only works in Cartesian and Polar coordinates.

POSTED BY: Jose Calderon