CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Main CFD Forum (https://www.cfd-online.com/Forums/main/)
-   -   errors (https://www.cfd-online.com/Forums/main/7328-errors.html)

Fahad March 23, 2004 13:20

errors
 
Hello! i m trying to run a programme in flexpde but its giving an error "memory protection fault" can any body help i m using flexpde 2.20e on windows xphome.

here is the code :if there is an error in the code plz let me know many thanx Fahad

---------------------------------------------------- TITLE 'Test FIR'

COORDINATES

CARTESIAN3

EXTRUSION

SURFACE "BOTTOM" Z=0

LAYER "GaAs WAFER"

surface "metal" z=100e-9

layer "metal"

SURFACE "2DEG" Z=101e-9

LAYER "GaAs"

SURFACE "AlGaAs " Z=111e-9

LAYER "AlGaAs"

SURFACE "nAlGaAs " Z=141e-9

LAYER " nAlGaAs "

SURFACE "GaAs Top" Z=171e-9

LAYER "GaAs Top"

SURFACE "ELECTRODES TOP " Z=181e-9

LAYER "ELECTRODES"

SURFACE "TOP" Z=191e-9

SELECT

VARIABLES V

DEFINITIONS

KGaAs=13

KAlGaAs=12.90

Kmetal =1e4

Kair=1

knAlGaAs=13.23

K=Kair

kelectrodes=kair Eps0=8.54E-12

cond

Vgate=-45e-3 Velectrodes=0 d=1e-6

Ex= -dx(v) Ey= -dy(v) E= -grad(v) Em= magnitude(E)

Jx= cond*Ex Jy= cond*Ey J= cond*E Jm= magnitude(j) eqn= div( -cond*grad(v))

INITIAL VALUES EQUATIONS

DIV(K*Eps0*GRAD(V))=0

CONSTRAINTS BOUNDARIES

REGION 1 "chip BASE"

LAYER "GaAs WAFER" K=KGaAs cond=0

layer "metal" k=kmetal cond=5.99e7

LAYER "GaAs" K=KGaAs cond=6.4e-4

LAYER "AlGaAs" K=KAlGaAs cond=0

LAYER " nAlGaAs " k=knAlGaAs cond=0

LAYER "ELECTRODES" K=kair cond=0

START (-2.5e-6,-0.5e-6) LINE TO (2.5e-6,-0.5e-6) LINE TO (2.5e-6,0.5e-6) LINE TO(-2.5e-6,0.5e-6) TO FINISH

REGION 2 "metalstrip"

LAYER "GaAs WAFER" K=KGaAs cond=0

layer "metal" k=kmetal cond=5.99e7

LAYER "GaAs" K=KGaAs cond=6.4e-4

LAYER "AlGaAs" K=KAlGaAs cond=0

LAYER " nAlGaAs " k=knAlGaAs cond=0

LAYER "ELECTRODES" K=kair cond=0

START (-0.95e-6,-0.47e-6) line to (-0.95e-6,0.47e-6) to (0.95e-6,0.47e-6) to (0.95e-6,-0.47e-6) to finish

REGION 3 "SET"

LAYER "GaAs WAFER" K=KGaAs cond=0

layer "metal" k=kmetal cond=5.99e7

LAYER "GaAs" K=KGaAs cond=6.4e-4

LAYER "AlGaAs" K=KAlGaAs cond=0

LAYER " nAlGaAs " k=knAlGaAs cond=0

LAYER "ELECTRODES" K=KMETAL VALUE(V)=0 cond=3.7e7

START (0.25e-6,0)

ARC(CENTER =0,0) ANGLE=360 TO FINISH

REGION 4 "GATE1"

LAYER "GaAs WAFER" K=kGaAs cond=0

layer "metal" k=kmetal cond=5.99e7

LAYER "GaAs" K=KGaAs cond=6.4e-4

LAYER "AlGaAs" K=KAlGaAs cond=0

LAYER " nAlGaAs " k=knAlGaAs cond=0

LAYER "ELECTRODES" K=kMETAL value(v)=-25e-03 cond=3.7e7 START (1.0e-6,0.5e-6) LINE TO (1.1e-6,0.5e-6) LINE TO (1.1e-6,0.35e-6) LINE TO (1.4e-6,0.5e-6) LINE TO (1.4e-6,0.5e-6)

LINE TO (1.1e-6,0.27e-6) LINE TO (1.1e-6,0.26e-6) LINE TO (1.0e-6,0.26e-6) TO FINISH

REGION 5 "GATE2"

LAYER "GaAs WAFER" K=kGaAs cond=0

layer "metal" k=kmetal cond=5.99e7

LAYER "GaAs" K=KGaAs cond=6.4e-4

LAYER "AlGaAs" K=KAlGaAs cond=0

LAYER " nAlGaAs " k=knAlGaAs cond=0

LAYER "ELECTRODES" K=kMETAL value(v)=-25e-03 cond=3.7e7 START (1.0e-6,-0.5e-6) LINE TO (1.1e-6,-0.5e-6) LINE TO (1.1e-6,-0.35e-6) LINE TO (1.5e-6,-0.5e-6) LINE TO (1.5e-6,-0.5e-6)

LINE TO (1.1e-6,-0.39e-6) LINE TO (1.1e-6,-0.35e-6) LINE TO (1.0e-6,-0.35e-6) TO FINISH

REGION 6 "GATE 3"

LAYER "GaAs WAFER" K=KGaAs cond=0

layer "metal" k=kmetal cond=5.99e7

LAYER "GaAs" K=KGaAs cond=6.4e-4

LAYER "AlGaAs" K=KAlGaAs cond=0

LAYER " nAlGaAs " k=knAlGaAs cond=0

LAYER "ELECTRODES" K=KMETAL value(v)=-50e-03 cond=3.7e7

START (-1.0e-6,0.4e-6) LINE TO (-1.1e-6,0.4e-6) LINE TO (-1.1e-6,0.15e-6) LINE TO (-2.5e-6,0.15e-6) LINE TO (-2.5e-6,-0.15e-6)

LINE TO (-1.1e-6,-0.15e-6) LINE TO (-1.1e-6,-0.4e-6) LINE TO (-1.0e-6,-0.4e-6) TO FINISH

REGION 7 "DRAIN"

LAYER "GaAs WAFER" K=KGaAs cond=0

layer "metal" k=kmetal cond=5.99e7

LAYER "GaAs" K=KGaAs cond=6.4e-4

LAYER "AlGaAs" K=KAlGaAs cond=0

LAYER " nAlGaAs " k=knAlGaAs cond=0

LAYER "ELECTRODES" K=Kmetal value(v)=0 cond=3.7e7

START (0.25e-6,0) LINE TO (0.35e-6,0) line to (0.35e-6,-0.5e-6) LINE TO (0.25e-6,-0.5e-6) TO FINISH

REGION 8 "source"

LAYER "GaAs WAFER" K=KGaAs cond=0

layer "metal" k=kmetal cond=5.99e7

LAYER "GaAs" K=KGaAs cond=6.4e-4

LAYER "AlGaAs" K=KAlGaAs cond=0

LAYER " nAlGaAs " k=knAlGaAs cond=0

LAYER "ELECTRODES" K=Kmetal value(v)=0 cond=3.7e7

START (-0.25*d,0) LINE TO (-0.35e-6,0) line to (-0.35e-6,-0.5e-6) line to (-0.25e-6,-0.5e-6) to finish

PLOTS

grid(x,y,z)

CONTOUR (V) ON SURFACE Z=101e-9

end

------------------------------------------------------



All times are GMT -4. The time now is 23:47.