play phryzby with physics

A Charge in a Gaussian Cube

solved GausssLaw

Q. A point charge of 2.0 μCq=2.0μC is at the centre of a cubic Gaussian surface 9.0 cm on edge. What is the net electric flux through the surface, in N m²/C?

Q = 2×10⁻⁶ CΦ = ?
Inputs
q
2 μC
Outputs
fluxΦ?

How it's solved

Solved with GausssLaw

Given

  • q=2.0μC

Find Φ.

Working
  1. q=2.0μC=2×10−6C
  2. gausss law(cube)Φ=qε0
  3. Φ=2×10−68.85418781×10−12
  4. Φ=225900N m²/C
  5. Φ≈2.26×105N m²/Cto 3 significant figures
Conclusion

The flux through a closed surface depends only on the charge inside, so the size of the cube does not matter.

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_charge_in_a_gaussian_cube do4  kind :numerical5  describes "A point charge of %{charge} is at the centre of a cubic Gaussian surface 9.0 cm on edge. %{flux}, in " \6            "N m²/C?"7  given charge: "2.0 μC"8  asks flux: "What is the net electric flux through the surface"9end
solution.rb
1require_relative "../questions/a_charge_in_a_gaussian_cube"2require_relative "../science/electric_charges_and_fields/gausss_law"34solve :a_charge_in_a_gaussian_cube, using: GausssLaw do5  objects :cube67  take charge: cube.charge_inside89  flux = cube.electric_flux10  answer flux:, in: "N m2/C", figures: 31112  conclusion "The flux through a closed surface depends only on the charge inside, so the size of the cube does " \13             "not matter."14end
playground.rb
1require_relative "../solutions/a_charge_in_a_gaussian_cube"23play_with :a_charge_in_a_gaussian_cube do4  title "A Charge in a Gaussian Cube"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 cubeAm²—
radius of cuberm0 … ∞
electric flux of groundΦgN m²/C—
electric flux of cubeΦN m²/C—
charge inside of groundqgC—
charge inside of cubeqC—
diameter of groundDgm0 … ∞
diameter of cubeDm0 … ∞
surface charge density of groundσgC/m²—
surface charge density of cubeσC/m²—
field near a line of groundEl,gV/m—
linear charge density of groundλgC/m—
field near a line of cubeElV/m—
linear charge density of cubeλC/m—
field between plates of groundEp,gV/m—
field between plates of cubeEpV/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)
A=π⋅r2
a round face(cube)
Φg=E⋅Ag
flux through a face across the field(ground)
Φ=E⋅A
flux through a face across the field(cube)
Φg=qgε0
gausss law(ground)
Φ=qε0
gausss law(cube)
Ag=π⋅Dg2
the surface of a sphere(ground)
A=π⋅D2
the surface of a sphere(cube)
qg=σg⋅Ag
charge spread over a surface(ground)
q=σ⋅A
charge spread over a surface(cube)
El,g=λg2⋅π⋅ε0⋅rg
field of a long line of charge(ground)
El=λ2⋅π⋅ε0⋅r
field of a long line of charge(cube)
Ep,g=σgε0
field between charged plates(ground)
Ep=σε0
field between charged plates(cube)