You are on page 1of 16

Important book to read and buy a) Numerical model of water waves by Charles L . Mader Pub. Crc press. wwwcrcpress.

com b) Numerical analysis by Daglus and Burden

1. TO OPEN A COMPUTER ssh -Y ( Computer name: ex. kepler, hamilton, herschel) 2. TO OPEN (DIRECTORY/ FILE) cd porous 3. TO DO MATLAB more ~/.cshrc ( will get setenv LM.........................) copy and paste setenv LM......... 4. TO PLOT GRAPH help fta then fta(..............) 5. TO ENTER (TO SEE) INTO THE PARAMETER ./triad OR more test/p 6. TO SEE PARAMETER ./triad 7. TO CHANGE THE PARAMETER ./triad (SPACE PARAMETER NAME: alpha=0, ncrank=.......) 8. TO SEE FILE LIST ls 9. TO OPEN A NEW DIRECTORY / FILE mkdir directory name (here mun) 10. TO COPY PARAMETER INTO A NEW DIRECTORY / FILE (MUN) cp test/p mun/p 11. TO CREATE A FILE mkdir nl

12. TO RUN WITH NEW FILE ./triad run=nl 13. TO SEE THE DIFFERENCE BETWEEN TWO FILES diff nl9/p nl10/p

14. TO CHANGE THE PARAMETER ./triad alpha=0 ,ncrank=10, niterations=10, npostsmooth=8, npresmooth=8, nuv=.5, nuC=.5 (3) / matlab & / (4) then ok

1. ssh -Y kepler 2. cd porous 3. mkdir nl6 4. ./triad run=nl6 5. , ./triad run=nl6 xmax=3 ymax=.5

( any parameter)

N. B. If you do not write run=nl6 (file name) it will go test or any file

6. WARNING: Parameter file nl6/p could not be opened. No such file or directory. Override (y/n)? y

7. ( 8. mkdir nl6 9. cp nl12/p nl20/p 10. ./triad run=nl20

If you want to do copy nl12/p to nl20/p )

11. ./triad alpha=0 ncrank=10 niterations=5 npostsmooth=8 npresmooth=8 nuC=0.01 nuv=0.01 12. more ~/.cshrc 13. setenv LM_LICENSE_FILE 28002@noether:28001@noether 14. matlab & 15. RESULATION CHANGE xlevel=...., ylevel=........

16. ./triad run=nl10 alpha=0 ncrank=10 niterations=10 npostsmooth=8 npresmooth=0 nuC=0.01 nuv=0.01 xmax=3 ymax=1 xlevel=8 ylevel=8 17. diff nl9/p nl10/p

18. To see the parameters


./triad run=nl27 more

19. To see the all in a folder


more porous.cc

20. To run program


After correction make then ./triad PRINTER NAME lpr -Pmpljet2 COLOR PRINT lpr -Pmgljet 21. TO SEE the any data stored in a point du fri115/fri115.1000.C 22. To SEE DATA SIZE du -h fri115/fri115.0029.C 23. TO SEE THE TOTAL TIME more nov286/t Mozila fire fox Problem: rm -r.mozila/ 24. C++ code run from linux: c++ file name (e. g. c++ testmy.cc) 25. C++ out put see from linux a.out 26. data see from save file in linux C++

more file name ( e.g. more C.dat) 27. To call a file from C++ and save it in matlab in a file u=load('C.dat') ( Here C.dat is a file name in C++ and u is a file name in matlab) 28. To plot in matlab plot(u(:,1),u(:,2),'*')

***************Matlab Command to plot graph:


clear all; figure(1);clf dat=load('res.dat'); x=dat(:,1); u=dat(:,2); plot(x,u,'o-')

MATLAB FILE TO PLOT GRAPH function fri u=load('C.fat'); x=linspace(-1,1,32); [x,y]=meshgrid(x,x); C=griddata(u(:,1),u(:,2),u(:,3),x,y); figure(1) contour(x,y,C) %plot3(u(:,1),u(:,2),u(:,3),'o','MarkerSize',2) MATLAB COMMAND WINDOW JUST WRITE FILE NAME (Here fri the press enter) 28. Matlab open in Terminal matlab -nodesktop

ICC=1 ICvx=1 ICvy=1 P0=1 P1=0 Phi0=1 Phi1=0 alpha=0 angle=0 checkpoint=0 convrate=0 defectstat=0 digits=15 dt=0.0005 dtmax=1e+308 dtmin=0 dynamic=1

exactpsi=1 explicit_factor=0.5 hybrid=0 igamma=1 implicit_factor=0.5 integrator=euler itmax=400 kappa2=1 method=POROUS microfactor=1 microsteps=1 movie=0 mu=0 ncrank=10 nfirst=1000 niterations=10 nonlinear=1 npostsmooth=5 npresmooth=0 nuC=0.01 nuv=0.01 obstacle=0 output=0 polltime=0 pressure=1 sample=0 stepfactor=2 stepnoninvert=2 tau=0 tmax=2 tolmax=0.005 tolmin=0 tprecision=0 xlevel=8 xmax=3 xmid=0 xmin=0 xstretch=1 ylevel=7 ymax=1 ymid=0 ymin=0 ystretch=1

ICC=1 ICvx=1 ICvy=1 P0=1 P1=0 Phi0=1 Phi1=0 alpha=0 angle=0 checkpoint=0 convrate=0 defectstat=0 digits=15 dt=0.0005 dtmax=1e+308

dtmin=0 dynamic=1 exactpsi=1 explicit_factor=0.5 hybrid=0 igamma=1 implicit_factor=0.5 integrator=euler itmax=400 kappa2=1 method=POROUS microfactor=1 microsteps=1 movie=0 mu=0 ncrank=10 nfirst=1000 niterations=10 nonlinear=1 npostsmooth=5 npresmooth=0 nuC=0.01 nuv=0.01 obstacle=0 output=0 polltime=0 pressure=1 sample=0 stepfactor=2 stepnoninvert=2 tau=0 tmax=2 tolmax=0.005 tolmin=0 tprecision=0 xlevel=8 xmax=3 xmid=0 xmin=0 xstretch=1 ylevel=7 ymax=1 ymid=0 ymin=0 ystretch=1 zeta=1

(kepler:~/porous) mja731% more nl14/p ICC=1 ICvx=1 ICvy=1 P0=1 P1=0 Phi0=1 Phi1=0 alpha=0 angle=0 checkpoint=0 convrate=0 defectstat=0 digits=15 dt=0.0005 dtmax=1e+308

dtmin=0 dynamic=1 exactpsi=1 explicit_factor=0.5 hybrid=0 igamma=1 implicit_factor=0.5 integrator=euler itmax=400 kappa2=1 method=POROUS microfactor=1 microsteps=1 movie=0 mu=0 ncrank=10 nfirst=1000 niterations=10 nonlinear=1 npostsmooth=5 npresmooth=0 nuC=0.01 nuv=0.01 obstacle=0 output=0 polltime=0 pressure=1 sample=0 stepfactor=2 stepnoninvert=2 tau=0 tmax=2 tolmax=0.005 tolmin=0 tprecision=0 xlevel=8 xmax=3 xmid=0 xmin=0 xstretch=1 ylevel=7 ymax=1 ymid=0 ymin=0 ystretch=1 zeta=1 (kepler:~/porous) mja731% (kepler:~/porous) mja731% more ppl/p Cmax=0.5 Cmin=0.5 ICC=1 ICvx=1 ICvy=1 P0=0 P1=0 Phi0=1 Phi1=0 alpha=0 angle=0 checkpoint=0 convrate=0 defectstat=0

digits=15 dt=0.0001 dtmax=1e+308 dtmin=0 dynamic=1 exactpsi=1 explicit_factor=0.5 hybrid=0 igamma=1 implicit_factor=0.5 integrator=euler itmax=10000 kappa2=1 method=POROUS microfactor=1 microsteps=500 movie=0 mu=0 ncrank=10 nfirst=1000 niterations=10 nonlinear=1 npostsmooth=3 npresmooth=3 nuC=0.01 nuv=0.01 obstacle=0 output=0 polltime=0 pressure=1 sample=0 stepfactor=2 stepnoninvert=2 tau=1 tmax=10 tolmax=0.005 tolmin=0 tprecision=0 xlevel=8 xmax=3 xmid=1.5 xmin=0 xstretch=10 ylevel=7 ymax=1 ymid=0.5 ymin=0 ystretch=10 zeta=1 (kepler:~/porous) mja731% more ppl100/p Cmax=0.5 Cmin=0.5 ICC=1 ICvx=1 ICvy=1 P0=0 P1=0 Phi0=1 Phi1=0 alpha=0 angle=0 checkpoint=0 convrate=0

defectstat=0 digits=15 dt=0.0001 dtmax=1e+308 dtmin=0 dynamic=1 exactpsi=1 explicit_factor=0.5 hybrid=0 igamma=1 implicit_factor=0.5 integrator=euler itmax=10000 kappa2=1 method=POROUS microfactor=1 microsteps=100 movie=0 mu=0 ncrank=10 nfirst=1000 niterations=10 nonlinear=1 npostsmooth=3 npresmooth=3 nuC=0.005 nuv=0.05 obstacle=0 output=0 polltime=0 pressure=1 sample=0 stepfactor=2 stepnoninvert=2 tau=1 tmax=10 tolmax=0.005 tolmin=0 tprecision=0 xlevel=8 xmax=3 xmid=1.5 xmin=0 xstretch=10 ylevel=7 ymax=1 ymid=0.5 ymin=0 ystretch=10 zeta=1 (kepler:~/porous) mja731% more ppl71/p ICC=1 ICvx=1 ICvy=1 P0=0 P1=0 Phi0=1 Phi1=0 alpha=0 angle=0 checkpoint=0 convrate=0 defectstat=0

digits=15 dt=0.0001 dtmax=1e+308 dtmin=0 dynamic=1 exactpsi=1 explicit_factor=0.5 hybrid=0 igamma=1 implicit_factor=0.5 integrator=euler itmax=100000 kappa2=1 method=POROUS microfactor=1 microsteps=100 movie=0 mu=0 ncrank=10 nfirst=1000 niterations=10 nonlinear=1 npostsmooth=3 npresmooth=3 nuC=0.005 nuv=0.05 obstacle=0 output=0 polltime=0 pressure=1 sample=0 stepfactor=2 stepnoninvert=2 tau=1 tmax=10 tolmax=0.005 tolmin=0 tprecision=0 xlevel=8 xmax=1 xmid=1.5 xmin=0 xstretch=10 ylevel=8 ymax=1 ymid=0.5 ymin=0 ystretch=10 zeta=1 (kepler:~/porous) mja731% (kepler:~/porous) mja731% more ppl100/p Cmax=0.5 Cmin=0.5 ICC=1 ICvx=1 ICvy=1 P0=0 P1=0 Phi0=1 Phi1=0 alpha=0 angle=0

checkpoint=0 convrate=0 defectstat=0 digits=15 dt=0.0001 dtmax=1e+308 dtmin=0 dynamic=1 exactpsi=1 explicit_factor=0.5 hybrid=0 igamma=1 implicit_factor=0.5 integrator=euler itmax=10000 kappa2=1 method=POROUS microfactor=1 microsteps=100 movie=0 mu=0 ncrank=10 nfirst=1000 niterations=10 nonlinear=1 npostsmooth=3 npresmooth=3 nuC=0.005 nuv=0.05 obstacle=0 output=0 polltime=0 pressure=1 sample=0 stepfactor=2 stepnoninvert=2 tau=1 tmax=10 tolmax=0.005 tolmin=0 tprecision=0 xlevel=8 xmax=3 xmid=1.5 xmin=0 xstretch=10 ylevel=7 ymax=1 ymid=0.5 ymin=0 ystretch=10 zeta=1 (kepler:~/porous) mja731%

You might also like