Treceți la conținutul principal

ELECTROSTATICA FORMULE CPP complet




/*

LEGEA LUI COULOMB
LEGEA ATRACTIEI SI RESPINGERII ELECTROSTATICE
F FORTA DE INTERACTIUNE
M1 SI M2 MASA CORPULUI M1 SI M2
R^2 DISTANTA DE LA CENTRU DINTRE CELE DOUA CORPURI
K  CONSTANTA ?
*/

//FORMULA 1

double F1(double k , double m1, double m2 , double r)
{
 return k((m1*m2)/r^2);

}



//FORMULA 2

/*

Q1 SI Q2 SARCINILE ELECTRICE CU CARE SUNT INCARCATE ALE DOUA CORPURI ELECTRIZATE
EPSILON PERMITIVITATEA MEDIULUI
R^2 DISTANTA DE LA CENTRU DINTRE CELE DOUA CORPURI

*/

double F2(double EPSILON , double q1, double q2 , double r)
{
 return ((q1*q2)/(EPSILON*r^2));

}


//FORMULA 2.0
//PT EPSILON = 1 SI Q1 = Q2

double q(double r, double F){
 return r*SQR(F);
}

double F2_0( double q, double r)
{
 return ((q^2)/(r^2));

}



//FORMULA 2.01
//FORTA DE RESPINGERE

//FR = F / (r/2)

double FR(double F, double r){ return  F / (r/2); }


//FORMULA 2.02
//GREUTATEA UNUI CORP

//GC = G / SQR((l^2)-(r/2)^2);

double GC (double G, double l, double r){ return G / SQR((l^2)-(r/2)^2);}

//F3 = (G * r)/(2*SQR((l^2)-((r^2)/4)));

double F3(double G, double r, double l){return (G * r)/(2*SQR((l^2)-((r^2)/4)));}

//PT G = m*g;

double G(double m , double g){return m*g;}

//F = m* g * r / * (SQR( 4 * l^2 - r^2));

double F4 (double m , double g, double r, double l){return m* g * r / * (SQR( 4 * l^2 - r^2));}





//POTENTIALUL ELECTRIC




//FORTA ELECTRICA

//F = SQR(FA * FB);

double Fn(double FA , double FB)
{
 return SQR(FA * FB);

}

//F1 = SQR(((Q*q)/(EPSILON*rA^2)) * (((Q*q)/(EPSILON*rB^2));

double Fn1(double Q, double q, double EPSILON, double rA , double rB)
{
 return SQR(((Q*q)/(EPSILON*rA^2)) * (((Q*q)/(EPSILON*rB^2));

}


//F2 = ((Q*q)/(EPSILON*rA^2*rB^2));

double Fn2(double Q, double q, double EPSILON, double rA , double rB)
{
 return ((Q*q)/(EPSILON*rA^2*rB^2));

}

//LUCRUL MECANIC AL FORTELOR ELECTRICE

//L = F(rB - rA);

double L(double F, double rA, double rB)
{
 return F(rB - rA);

}

//L = ((Q*q)/(EPSILON*rA*rB))/(rB - rA);

double L2(double Q, double q, double EPSILON, double rA , double rB)
{
 return ((Q*q)/(EPSILON*rA*rB))/(rB - rA);

}

//FORMULA 7 LUCRUL MECANICA AL FORTELOR ELECTRICE

//L = ((Q*q)/(EPSILON))/((1/rA - 1/rB));

double L7(double Q, double EPSILON, double rA , double rB)
{
 return ((Q*q)/(EPSILON))/((1/rA - 1/rB));

}

//POTENTIALUL ELECTRIC

//FORMULA 8
//VA = L / q;

double VA(double L, double q)
{
 return L / q;

}


//USING L = ((Q*q)/(EPSILON))/((1/rA - 1/rB)); 
// FOR rB = PLUS_INFINIT
//WHERE  1 / rB = 0

//FORMULA 9
//VA = Q / (EPSILON * rA);

double VA(double L, double EPSILON, double rA)
{
 return  Q / (EPSILON * rA);

}

//VB = Q/ (EPSILON * rA);

double VB(double L, double EPSILON, double rB)
{
 return  Q / (EPSILON * rA);

}



//FORMULA 10
// L = q(VA - VB);

double L10(double q, double VA, double VB)
{
 return q(VA - VB);

}


//POTENTIALUL
// V = Q / (EPSILON * r);

double V(double Q, double EPSILON , double r)
{
 return  Q / (EPSILON * r);

}

//UNITATILE DE POTENTIAL
//VA - VB = (L / q);     // U = L / q TENTIUNE ELECTRICA DE POTENTIAL

double VAdifVB(double L, double q)
{
 return  (L / q);

}


double Ldifq(double VA, double VB)
{
 return  VA - VB;

}


//JOULE
//1 V = 1 J / 1 C;
// 1 J = 10^7 ergi

CONST JOULE = 10^7 ; //ergi


// 1 V =  1 / (3 * 10 ^ 2)    stV

CONST VOLT =  1 / (3 * 10 ^ 2) ; //stV

// 1 V = 1 / 300  CGS es DE POTENTIAL

CONST VOLT2 = 1 / 300 ; //CGS es DE POTENTIAL


//ELECTRON VOLT eV


// L = q(VA - VB);

double L(double q, double VA, double VB)
{
 return  q(VA - VB);

}

//VA - VB = 1 VOLT = 1 /( 3 * 10^2) ues

CONST VAdifVB2 = 1 /( 3 * 10^2) ; //ues


// L = 1.6 * 10^-12 ergi;
CONST L2 = 1.6 * 10^-12 ; //ergi

// 1 eV = 1.6 * 10^-12 ergi;
CONST eV = 1.6 * 10^-12 ; //ergi

//SUPRAFETE ECHIPOTENTIALE
// IF VA = VB = 0; THEN
// L = Va - Vb = 0; THEN
// V = Q / (EPSILON * r);

double V3(double Q, double EPSILON, double r)
{
 return  Q / (EPSILON * r);

}

//LUCRUL MECANIC AL FORTELOR ELECTRICE INTRE DOUA SUPRAFETE ECHIPOTENTIALE

//L = q(VA - VB);

double L3(double q, double VA, double VB)
{
 return  q(VA - VB);

}

//IF L2 > L1 THEN
// L = L2 - L1 > 0;

double L4(double L2, double L1)
{
 return  L2-L1;

}


// LEGATURA INTRE CAMP SI POTENTIAL

//1 stV/cm = 300 V / (1/100)m;
//1 stV/cm = 3 * 10^4 V/m;

CONST stVperm = 300 / (1/100) ; //volt per metru
CONST stVperm2 = 3 * 10^4 ; //volt per metru

//DIFERENTA DE POTENTIAL




























/*

LEGEA LUI COULOMB


F0 FORTA DE INTERACTIUNE IN VID


EPSILON0 = 1 PERMITIVITATE VID
Q1 SI Q2 SARCINILE ELECTRICE CU CARE SUNT INCARCARE CORPURILE M1 SI M2
R^2 DISTANTA DE LA CENTRU DINTRE CELE DOUA CORPURI
*/

//FORMULA 3


const epsilon0 = 1;


double F0(double q1, double q2 , double r)
{
 return ((q1*q2)/r^2);

}


//FORMULA CONSTANTA DIELECTRICA EPSILON

//FORMULA 3.B

double EPSILON(double F0, double F )
{
 return (F0/F);

}


//FORMULA UNITATE ELECTROSTATICA DE CANTITATE DE ELECTRICITATE

/*
Q1 = Q1 = 1
F0 = 1 dyna
R = 1 CM
*/


//1 C COULOMB
CONST C = 3*10^9; // CGS es

//e SARCINA ELECTRICA A ELECTRONULUI
CONST e = 4.8 * 10^-10 ;//u CGS es


//me MASA ELECTRONULUI
CONST me = 10^-27 ;// g GRAME


//NR DE ELECTRONI AFLATI INTRUN CORP INCARCAT CU O UNITATE CGS DE ELECTRICITATE NEGATIVA
CONST NReOun = 2 * 10^9; //ELECTRONI




//CAPACITATEA ELECTRICA


//CAPACITATEA ELECTRICA A CONDUCTOARELOR
//RAPORT CONSTANT CAPACITATE VS POTENTIAL

//Q/V = Q'/V'=Q''/V'' = CONSTANT

//FORMULA 11
//C=Q/V 

double C11(double Q , double V)
{
 return Q/V;

}

//CAPACITATEA UNUI CONDUCTOR SFERIC

//V=Q/(EPSILON*r)


double V12(double Q , double EPSILON, double r)
{
 return Q/(EPSILON*r);

}


//in vid EPSILON =1
r - RAZA SFEREI

//V=Q/r


double V12B(double Q , double r)
{
 return Q/r;

}

//FORMULA 12
//C=Q/V = Q/Q/r = r

double C12( double r)
{
 return r;

}


//UNITATI DE CAPACITATE

//FORMULA 13

//1 cm = 1 ues / 1 stV

//formula 14

//1F = 1C / 1V;


//1C = 3*10^9 ues
const c = 3*10^9;
//1V = 1/3*10^2 ues de potential
const v = 1/3*10^2;
//1F = 1C/1V = 9*10^11 cm
const f = 9*10^11;
//1 FARAD 1F = 9*10^6 KM
const farad = 9*10^6; //km

/*
micro uF 10^-6 F = 9 km
const uF = 10^-6; //km
pico pF 10^-6 uF = 10^-9 F = 0.9 cm
const pF = 10^-9;
conductor sferic de 1 cm = 1/0.9 CAPACITATE = 10/9 pF
const conductorsferic = 1/0.9; //C


*/



//V=Q/C   ; //stV

double V14(double Q , double C)
{
 return Q/C;

}

//V=Q/(EPSILON * r )  ;

double V14(double Q , double C)
{
 return Q/C;

}

//C=Q/V=EPSILON*r ;

double C14(double Q , double V)
{
 return Q/V;

}

double C14B(double EPSILON , double r)
{
 return EPSION*r;

}

//Q=C*V;
double Q14(double C , double V)
{
 return C*V;

}

//CONDENSATORI ELECTRICI

//CONDENSAREA ELECTRIITATII

//STUDIUL EXPERIMENTAL AL CONDENSATORILOR


//FORMULA 15
d - distanta
//C = (EPSILON*S)/(4*PI*d);
double C15(double EPSILON, double S, double PI, double d)
{
 return (EPSILON*S)/(4*PI*d);

}

//ROLUL DIELECTRICULUI LA UN CONDENSATOR

//DIFERITE TIPURI DE CONDENSATORI

//GRUPAREA CONDENSATORILOR


//SERIE

//PARALEL LA SUPRAFATA
//Ci = Qi / (VA - VB);

double Ci(double Qi, double VA, double VB)
{
 return Qi / (VA - VB);

}

//Qtotal = suma Qi

double Qtotal(double [] Qi,int length)
{
 double suma = 0;
 for(int i = 0; i<= length; i++){
  
   suma += Qi[i];
 }
 return suma;

}


double Ctotal(double [] Ci,int length)
{
 double suma = 0;
 for(int i = 0; i<= length; i++){
  
   suma += Ci[i];
 }
 return suma;

}

//MIXT

//MASINILE ELECTRICE
//SCANTEIA ELECTRICA
//ELECTRICITATEA ATMOSFERICA








/*

CAMPUL ELECTRIC



FORTA DE RESPINGERE Fr

*/

//FORMULA 3.9

double Fr(double Q , double q, double EPSILON , double r)
{
 return  (q*Q)/(EPSILON*r^2);

}


//INTENSITATEA CAMPULUI ELECTRIC E

//FORMULA 4


double E(double F , double q)
{
 return  F/q;

}



//PT q = 1 SI E = F INLCUIM IN LEGEA LUI COULOMB

//E = (Q*q)/(EPSILON*r^2)/q;

double E2(double Q, double q , double EPSILON, double r)
{
 return  (Q*q)/(EPSILON*r^2)/q;

}


//E = Q / (EPSION*r^2);
//FORMULA 5

double E3(double Q, double EPSILON, double r)
{
 return   Q / (EPSION*r^2);

}


//E0 vid unde epsilon = 1
//

double E0(double Q, double r)
{
 return   Q / r^2;    //u CGS de camp

}


//FORTA F E VECTORIALA Fe
//FORMULA 6

double Fe(double E, double q)
{
 return  q/E;   

}


//CAMPUL GRAVITATIONAL G = m * g

double G(double m, double g)
{
 return m * g;   

}

Comentarii

Postări populare de pe acest blog

program principal cpp

#include "clasa.h" #include <stdio.h> #include <conio.h> #include <stdlib.h> #include <string.h> #define DELAY 9000000 void delay() { for(long i=0;i<DELAY;i++); } //constructor cu initializare de la tastatura BigInt::BigInt() {char x; signed char t[400]; int i; printf("\nNumarul cu semn "); do s=getche(); while((s!='+')&&(s!='-')); n=0; do {x=getche(); t[n]=x-'0'; n++; } while((x>='0')&&(x<='9')); n--; for(i=0;i<n;i++) nr[i]=t[n-i-1]; } //constructor cu initializare prin parametri BigInt::BigInt(char semn,signed char numar[],int dim) {int i; s=semn; n=dim; for(i=0;i<n;i++) nr[i]=numar[n-i-1]; } //transform un int negativ in pozitiv int BigInt::Pozitiv(int x) {int a,vb; a=0; vb=0; while(vb==0) if((x+a)==0) vb=1; else a=a+1; x=a; return x; } //constructor dintr-un nr int obisnuit BigInt::BigInt(int x) {int i; if(x>=0) s='+'…

NUMERE PRIME ALGORITM C++

// NUMERE PRIME ALGORITM C++//  reediting from scratch //on this page is just the study for a next algoritm for generating the parime nr series like Fibonnaci or ....if possibile

74111121313417374414124343447 if u know the red part you can generate the orange part
1 0 1 111112222 1 1 23

o aplicatie php localitati romania

//APLICATIA SE REFERA LA BAZA DE DATE SIRUTA

//dragtable.js


/* dragtable v1.0 June 26, 2008 Dan Vanderkam, http://danvk.org/dragtable/ http://code.google.com/p/dragtable/ \Bsortabledraggable\B Instructions: - Download this file - Add <script src="dragtable.js"></script> to your HTML. - Add class="draggable" to any table you might like to reorder. - Drag the headers around to reorder them. This is code was based on: - Stuart Langridge's SortTable (kryogenix.org/code/browser/sorttable) - Mike Hall's draggable class (http://www.brainjar.com/dhtml/drag/) - A discussion of permuting table columns on comp.lang.javascript Licensed under the MIT license. */ // Here's the notice from Mike Hall's draggable script: //***************************************************************************** // Do not remove this notice. // // Copyright 2001 by Mike Hall. // See http…