Code Monkey home page Code Monkey logo

electrical-discharge's Introduction

Dielectric-Discharge

Simulation of electrical discharge in an inhomogenous insulator uisng c++.

compile command: g++ Main.cpp

We develop a model of an electrical discharge in an inhomogenous isulator (e.g., lighting ). When an elctrical discharging occurs the elctrical potential phi, staistfy Laplace equation( Laplaican(phi) = 0 ). The model specified by these steps:

1- Consider a large boundary circle of radius R and place charge source at origin. Choose the potential phi=0 at the origin(ocuiped site) and phi=1 for sites on circumference of the circle. The radius R should be larger than the radius of the growing pattern.

2- We using Relaxation method to compuate phi_i for empty sites in circle.

3- Assign a random number r to each empty in circle. The random number r_i at site i represents a breakdown coefficent and the random inhomegenus nature of insulator.

4- The perimeter sites are the neigbour sites of the discharged pattern(occuiped sites). We form the product r_i*(phi_i)^a for each perimeter site i , where a is adjustable parameters.

5- The perimeter site with maximum value of r*phi^a , breaks down(means its potential equal to zero ).

6- We use the Relaxation method to recaclulate the value of potential at the remaining unoccuiped sites, and then we repeat steps (4) -(6).

Site(x,y) = 1 : represnets occupied site.
Site(x,y) = 2 : represnets perimeter site.
Site(x,y) = 0 : represnets un tested site(empty).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.