Вы находитесь на странице: 1из 3

Quickie on Nek5000

Main Functions : Main Varibles:


●Ux ,Uy,Uz (lx1,ly1,lz1,lelt), pt (lx,ly2,lz2,lelt)
●Userbc ●Flow velocities and pressure

●Define boundary conditions ●Uxp ,Uyp,Uzp (lx1*ly1*lz1*lelt,lpert), ptp

(lx2,ly2,lz2*lelt,lpert)
●Userf
●Perturbation flow components (linearized NS)

●Define External forces ●Xm1,ym1,ym1 (lx1,ly1,lz1,lelt)

●Velocity mesh grid


●Userq
●Xm2,ym2,ym2 (lx2,ly2,lz2,lelt)

●Define external heat source


●Pressure mesh grid

●X,y,z,u,v,w
●Userchk
●Current mesh point and flow variable on the userf,userq an
●Check on each time step (export data, perform checks, etc
userbc functions.
Main Parameters: Main suboutines:
●Ifadj ●exitt

●Defines if adjoint run is to be used on the perturbations ●Finishes the program

●Iostep ●Outpost, outpost2

●Current simulation time ●Saves flow state to the disk

●Time ●Other functions for inner products and etc...

●Current simulation time

●Jp

●Perturbation index : 0 represents non linear flow, >0

represents the jp-th perturbation solution.


Quickie on Nek5000
● Parameters (rea file)
● ****** PARAMETERS *****
● 2.610000 NEKTON VERSION
● 2 DIMENSIONAL RUN
● 103 PARAMETERS FOLLOW
● 1.00000 p001 DENSITY
● -1000.000 p002 (positive for viscosity, negative
for Re)
● ...
Quickie on Nek5000
● Files ● Running
.rea
● Compile

– Contains mesh and parameters – Makenek filename(.usr)

Size
● Map elements to processors

– Main program parameters (order, number – Genmap <<< filename.rea


of elements, etc)
Run nek

file.use

– nek(mpi) reafileName (nproc)
– Contains user defined functions (where
you should toy with) Visualize

Mesh

.map

tool – Visnek reafileName
genbox

– Mapping between elements and each – Visit -o reafileName.nek5000
process
– (only know how to make boxes...) – or functions to read the file in matlab,
● https://pymech.readthedocs.io/en/lat
est/
● https://github.com/nfabbiane/nekmat
lab

Вам также может понравиться