Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Topic: Programming for electrodynamics problem Write a .f95 program that will call a subroutine function that creates a lattice of 100 by 100 size (array).

Topic: Programming for electrodynamics problem

Write a .f95 program that will call a subroutine function that creates a lattice of 100 by 100 size (array). The routine would require the use to input values for potential V1 and V2 on the left and right side respectively.

image text in transcribed

image text in transcribed

Consider a time independent electric field in an area of space which is empty of electric charge. Maxwell's equations are reduced to Gauss's law E(x,y,z)=xEx+yEy+zEz=0, together with the equation that defines the electrostatic potential 7 E(x,y,z)=V(x,y,z). Equations (7.8) and (7.9) give the Laplace equation for the function V(x,y,z) : 2V(x,y,z)=x22V+y22V+z22V=0 initialize_lattice(V,isConductor,L,V1,V2): The routine needs at its input the values of the potential V1 and V2 on the left and right plate respectively and the size of the lattice L. On exit it provides the initial values of the potential V (L,L) and the flags isConductor (L,L). The geometry of the setting is hard coded and the user needs to change this subroutine each time that she wants to study a different geometry

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions