play phryzby with physics

A Cylinder in a Field

solved GausssLaw

Q. An electric field is uniform, of magnitude 200 N/CE=200N/C, pointing away from the plane x = 0 on either sideΦc=2⋅Φf. A right circular cylinder of radius 5 cmrf=5cm has its centre at the origin and its axis along the x-axis, so that its flat faces stand across the field on either side. What is the net charge inside the cylinder, in coulombs?

E = 200 N/CΦAr = 0.05 m
Inputs
E
200 N/C
rf
5 cm
Outputs
chargeqc?

How it's solved

Solved with GausssLaw

Given

  • E=200N/C
  • rf=5cm
  • Φc=2⋅Φf from “on either side”

Find qc.

Working
  1. E=200N/C=200V/m
  2. rf=5cm=0.05m
  3. a round face(face)Af=π⋅rf2
  4. Af=3.14159265⋅0.052
  5. Af=0.00785398163m²
  6. flux through a face across the field(face)Φf=E⋅Af
  7. Φf=200⋅0.00785398163
  8. Φf=1.57079633N m²/C
  9. on either sideΦc=2⋅Φf
  10. Φc=2⋅1.57079633
  11. Φc=3.14159265N m²/C
  12. gausss law(cylinder)Φc=qcε0
  13. 3.14159265=qc8.85418781×10−12
  14. qc=2.782×10−11C
  15. qc≈2.78×10−11Cto 3 significant figures
Conclusion

The field leaves through both flat faces and runs along the curved side, so all the flux is through the faces; Gauss's law turns that flux into the charge inside.

The web of concepts

given read from the words equation asked

The Ruby that solves it

The question and its solution are small Ruby files. The engine runs them.

question.rb
1require_relative "../physics"23question :a_cylinder_in_a_field do4  kind :numerical5  describes "An electric field is uniform, of magnitude %{field}, pointing away from the plane x = 0 on either side. " \6            "A right circular cylinder of radius %{radius} has its centre at the origin and its axis along the " \7            "x-axis, so that its flat faces stand across the field on either side. %{charge}, in coulombs?"8  given field: "200 N/C"9  given radius: "5 cm"10  asks charge: "What is the net charge inside the cylinder"11end
solution.rb
1require_relative "../questions/a_cylinder_in_a_field"2require_relative "../science/electric_charges_and_fields/gausss_law"34solve :a_cylinder_in_a_field, using: GausssLaw do5  objects :face, :cylinder67  take field: E8  take radius: face.radius910  deduce_from "on either side", cylinder.electric_flux => 2 * face.electric_flux1112  charge = cylinder.charge_inside13  answer charge:, in: "C", figures: 31415  conclusion "The field leaves through both flat faces and runs along the curved side, so all the flux is " \16             "through the faces; Gauss's law turns that flux into the charge inside."17end
playground.rb
1require_relative "../solutions/a_cylinder_in_a_field"23play_with :a_cylinder_in_a_field do4  title "A Cylinder in a Field"5end
The laws it drew on
quantitywrittenunitswithinfrom
piπ—0 … ∞GausssLaw
permittivity of free spaceε0F/m—GausssLaw
field strengthEV/m—GausssLaw
areaAm²—GausssLaw
radiusrm0 … ∞GausssLaw
electric fluxΦN m²/C—GausssLaw
charge insideqC—GausssLaw
diameterDm0 … ∞GausssLaw
surface charge densityσC/m²—GausssLaw
linear charge densityλC/m—GausssLaw
field near a lineElV/m—GausssLaw
field between platesEpV/m—GausssLaw
area of groundAgm²—
radius of groundrgm0 … ∞
area of faceAfm²—
radius of facerfm0 … ∞
area of cylinderAcm²—
radius of cylinderrcm0 … ∞
electric flux of groundΦgN m²/C—
electric flux of faceΦfN m²/C—
electric flux of cylinderΦcN m²/C—
charge inside of groundqgC—
charge inside of faceqfC—
charge inside of cylinderqcC—
diameter of groundDgm0 … ∞
diameter of faceDfm0 … ∞
diameter of cylinderDcm0 … ∞
surface charge density of groundσgC/m²—
surface charge density of faceσfC/m²—
surface charge density of cylinderσcC/m²—
field near a line of groundEl,gV/m—
linear charge density of groundλgC/m—
field near a line of faceEl,fV/m—
linear charge density of faceλfC/m—
field near a line of cylinderEl,cV/m—
linear charge density of cylinderλcC/m—
field between plates of groundEp,gV/m—
field between plates of faceEp,fV/m—
field between plates of cylinderEp,cV/m—
Af=π⋅rf2
a round face
Φf=E⋅Af
flux through a face across the field
Φs=qsε0
gausss law
As=π⋅Ds2
the surface of a sphere
qs=σs⋅As
charge spread over a surface
El,l=λl2⋅π⋅ε0⋅rl
field of a long line of charge
Ep,p=σpε0
field between charged plates
Ag=π⋅rg2
a round face(ground)
Af=π⋅rf2
a round face(face)
Ac=π⋅rc2
a round face(cylinder)
Φg=E⋅Ag
flux through a face across the field(ground)
Φf=E⋅Af
flux through a face across the field(face)
Φc=E⋅Ac
flux through a face across the field(cylinder)
Φg=qgε0
gausss law(ground)
Φf=qfε0
gausss law(face)
Φc=qcε0
gausss law(cylinder)
Ag=π⋅Dg2
the surface of a sphere(ground)
Af=π⋅Df2
the surface of a sphere(face)
Ac=π⋅Dc2
the surface of a sphere(cylinder)
qg=σg⋅Ag
charge spread over a surface(ground)
qf=σf⋅Af
charge spread over a surface(face)
qc=σc⋅Ac
charge spread over a surface(cylinder)
El,g=λg2⋅π⋅ε0⋅rg
field of a long line of charge(ground)
El,f=λf2⋅π⋅ε0⋅rf
field of a long line of charge(face)
El,c=λc2⋅π⋅ε0⋅rc
field of a long line of charge(cylinder)
Ep,g=σgε0
field between charged plates(ground)
Ep,f=σfε0
field between charged plates(face)
Ep,c=σcε0
field between charged plates(cylinder)
Φc=2⋅Φf
on either side