Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

How to generate plots for the equipotentional lines ( electric potential line ) and the electrical flux line and have them in one 2D figure

image text in transcribedHow to generate plots for the equipotentional lines ( electric potential line ) and the electrical flux line and have them in one 2D figure using MATLAB
718 CHAPTER 14 NUMERICAL METHOD!s USING FINITE DIFFERENCE (ITERATION)-METHOOUNDARY- THIS PROGRAM SOLVES THE TWO-DIMENSIONAL VALUE PROBLEM (LAPLACE S BQUATION) SHOWs IN FIG. 14.14. ni NO.OF ITERATIONS nyNO. OF Y GRID POINTS NODE NUMBERING STARTING FROM nx-NO, OP X GRID POINTS y(i, j) POTENTIAL AT GRID POINT (1, CORNER OF THE TROUGH WITH .) OR (x,y) THE LOWER LEFT-HAND v1 = 10.0; V2 100 , 0 ; v340.0 v4 0.0 ni = 200; nx = 16; ny 11 SET INITIAL VALUES EQUAL TO ZEROES vzeros (nx, ny) i % FIX POTENTIALS ARE FIXED NODES for i-2inx-1 v(1,1) v1 ; = end 2 (i end v(l,1)0.5 (vl v4) V(nx, 1) = 0.5* (v1 + v2); v(1,ny)-0.5 (v3v4); V(nx , ny) 0.5* (v2 + V3); NOW FIND v ,j) USING EQ (14.15) AFTER n ITERATIONS for k= 1: ni for i-2inx-1 for j-2:ny-1 diary a:testi.out iv(6,6), v(9,9), v(11,6), v(9,3)1 diary off FIGURE 14.16 Computer program for Example 14.4

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored 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

Recommended Textbook for

Case Studies In Business Data Bases

Authors: James Bradley

1st Edition

0030141346, 978-0030141348

More Books

Students also viewed these Databases questions