Story of Sinx and Flux (part 2)

A particle with charge q = + 10 q=+10 is position at N N ( x , y , z ) = ( 1 , 1 , 1 ) (x,y,z)=(1,1,1) at that orange dot as shown in figure. Find the flux through the surface area enclosed by two equation y = 0 y=0 and y = s i n x y=|sinx| ( 0 x 10 π ) (0≤x≤10π) for the five cycles only, from point A = ( 0 , 0 ) A=(0, 0) to B = ( 10 π , 0 ) B=(10π,0) . Point B B is not shown in figure because after that figure will be very large.

Details and Assumptions 1) For example if your answer comes 0.2300 like this then type your answer as 23. 2) Electric permittivity ϵ o = 1 \epsilon_{o}=1


The answer is 69.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

1 solution

Steven Chase
Mar 14, 2020

Nice problem. Simulation code below:

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
import math

N = 10000

#####################################

q = 10.0

xq = 1.0
yq = 1.0
zq = 1.0

e0 = 1.0

#####################################

k = 1.0/(4.0*math.pi*e0)

phi = 0.0
S = 0.0

#####################################
#####################################
#####################################
#####################################

dx = 10.0*math.pi/N

nx = 0.0
ny = 0.0
nz = -1.0

x = 10.0**(-9.0)
z = 0.0

while x <= 10.0*math.pi:

    yf = math.fabs(math.sin(x))

    dy = yf/N
    dS = dx*dy

    y = 0.0

    while y <= yf:

        Dx = x - xq
        Dy = y - yq
        Dz = z - zq

        D = math.sqrt(Dx**2.0 + Dy**2.0 + Dz**2.0)

        ux = Dx/D
        uy = Dy/D
        uz = Dz/D

        E = k*q/(D**2.0)

        Ex = E * ux
        Ey = E * uy
        Ez = E * uz

        dot = Ex*nx + Ey*ny + Ez*nz

        dphi = dot * dS

        phi = phi + dphi
        S = S + dS

        y = y + dy

    x = x + dx

##################################################################

print N
print phi
print S

#>>> 
#1000
#0.690143433907
#20.0069914989

#>>> ================================ RESTART ================================
#>>> 
#2000
#0.690124877618
#20.0048624614

#>>> ================================ RESTART ================================
#>>> 
#5000
#0.690035077293
#20.0019121559
#>>>

#10000
#0.690022123909
#20.0009834197

@Steven Chase Sir I have reposted the problem https://brilliant.org/problems/story-of-sinx-and-flux/

A Former Brilliant Member - 1 year, 2 months ago

Log in to reply

Thanks, I solved that one too

Steven Chase - 1 year, 2 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...