Main Page | File List | File Members

escget.c File Reference

List of Get methods. The following routines give access equilibrium profile data and geometry after execution (Esc). More...

#include <math.h>
#include <stdio.h>
#include <ctype.h>
#include <stdlib.h>

Functions

void escGetNa1 (int *Na1)
void escgetna1_ (int *Na1)
void escgetna1 (int *Na1)
void ESCGETNA1 (int *Na1)
void escGetNp1 (int *Np1)
void escgetnp1_ (int *Np1)
void escgetnp1 (int *Np1)
void ESCGETNP1 (int *Np1)
void escGetPsibar (double *prof, int *ns)
void escgetpsibar_ (double *prof, int *ns)
void escgetpsibar (double *prof, int *ns)
void ESCGETPSIBAR (double *prof, int *ns)
void escGetPsi (double *prof, int *ns)
void escgetpsi_ (double *prof, int *ns)
void escgetpsi (double *prof, int *ns)
void ESCGETPSI (double *prof, int *ns)
void escGetPhibar (double *prof, int *ns)
void escgetphibar_ (double *prof, int *ns)
void escgetphibar (double *prof, int *ns)
void ESCGETPHIBAR (double *prof, int *ns)
void escGetPhi (double *prof, int *ns)
void escgetphi_ (double *prof, int *ns)
void escgetphi (double *prof, int *ns)
void ESCGETPHI (double *prof, int *ns)
void escGetG (double *prof, int *ns)
void escgetg_ (double *prof, int *ns)
void escgetg (double *prof, int *ns)
void ESCGETG (double *prof, int *ns)
void escGetIota (double *prof, int *ns)
void escgetiota_ (double *prof, int *ns)
void escgetiota (double *prof, int *ns)
void ESCGETIOTA (double *prof, int *ns)
void escGetQ (double *prof, int *ns)
void escgetq_ (double *prof, int *ns)
void escgetq (double *prof, int *ns)
void ESCGETQ (double *prof, int *ns)
void escGetP (double *prof, int *ns)
void escgetp_ (double *prof, int *ns)
void escgetp (double *prof, int *ns)
void ESCGETP (double *prof, int *ns)
void escGetFourierR (double *rcos, double *rsin, int *nf, int *ns)
void escgetfourierr_ (double *rcos, double *rsin, int *nf, int *ns)
void escgetfourierr (double *rcos, double *rsin, int *nf, int *ns)
void ESCGETFOURIERR (double *rcos, double *rsin, int *nf, int *ns)
void escGetR (double *r, int *nt1, int *ns, int *clockwise)
void escgetr_ (double *r, int *nt1, int *ns, int *clockwise)
void escgetr (double *r, int *nt1, int *ns, int *clockwise)
void ESCGETR (double *r, int *nt1, int *ns, int *clockwise)
void escGetFourierZ (double *zcos, double *zsin, int *nf, int *ns)
void escgetfourierz_ (double *zcos, double *zsin, int *nf, int *ns)
void escgetfourierz (double *zcos, double *zsin, int *nf, int *ns)
void ESCGETFOURIERZ (double *zcos, double *zsin, int *nf, int *ns)
void escGetZ (double *z, int *nt1, int *ns, int *clockwise)
void escgetz_ (double *z, int *nt1, int *ns, int *clockwise)
void escgetz (double *z, int *nt1, int *ns, int *clockwise)
void ESCGETZ (double *z, int *nt1, int *ns, int *clockwise)
int ecsaveesc ()
int ecsaveesc_ ()
int ECSAVEESC ()
int ecrestoreesc (double *time)
int ecrestoreesc_ (double *time)
int ECRESTOREESC (double *time)

Variables

int ESNp1
int ESNa1
int ESNa
const double ESC_TwoPi = 6.2831853071796


Detailed Description

List of Get methods. The following routines give access equilibrium profile data and geometry after execution (Esc).


Function Documentation

int ecsaveesc  ) 
 

RGA: additional support routines ecsavesc() - write out current time. This is 0.0 before any equilibrium is solved. ecrestoreesc(time) - read in an equilibrium, return 0 on success.

void escGetFourierR double *  rcos,
double *  rsin,
int *  nf,
int *  ns
 

Get the Fourier coefficients of the R coordinate [m].

Parameters:
rcos the returned cosine coefficients of sizes [ns][nf]
rsin the returned sine coefficients
nf the number of Fourier coefficients (input)
ns the radial size (input)
Author:
L.E. Zakharov, A. Pletzer
See also:
escGetFourierZ

void escGetFourierZ double *  zcos,
double *  zsin,
int *  nf,
int *  ns
 

Get the Fourier coefficients of the Z coordinate [m].

Parameters:
zcos the returned cosine coefficients of sizes [ns][nf].
zsin the returned sine coefficients
nf the number of Fourier coefficients (input)
ns the radial size (input)
Author:
L.E. Zakharov, A. Pletzer
See also:
escGetFourierR

void escGetG double *  prof,
int *  ns
 

Get the covariant toroidal magnetic field function [Tm].

Parameters:
prof the returned profile
ns the size of the returned profile (input)
Author:
L.E. Zakharov, A. Pletzer
See also:
escGetIota escGetQ escGetP

void escGetIota double *  prof,
int *  ns
 

Get the 1/q profile [-].

Parameters:
prof the returned profile
ns the size of the returned profile (input)
Author:
L.E. Zakharov, A. Pletzer
See also:
escGetQ escGetG escGetP

void escGetNa1 int *  Na1  ) 
 

Get the radial number of grid points used internally by ESC.

Parameters:
Na1 the grid size
Author:
L.E. Zakharov, A. Pletzer
See also:
escGetNp1

void escGetNp1 int *  Np1  ) 
 

Get the number of poloidal rays + 1 used internally by ESC.

Parameters:
Np1 the number of poloidal sections + 1
Author:
L.E. Zakharov, A. Pletzer
See also:
escGetNa1

void escGetP double *  prof,
int *  ns
 

Get the pressure in [mu0 Pa].

Parameters:
prof the returned profile
ns the size of the returned profile (input)
Author:
L.E. Zakharov, A. Pletzer
See also:
escGetIota escGetG escGetQ

void escGetPhi double *  prof,
int *  ns
 

Get the toroidal flux [Wb].

Parameters:
prof the returned profile
ns the size of the returned profile (input)
Author:
L.E. Zakharov, A. Pletzer
See also:
escGetPhibar

void escGetPhibar double *  prof,
int *  ns
 

Get the toroidal flux/(2*pi) [Wb/rad].

Parameters:
prof the returned profile
ns the size of the returned profile (input)
Author:
L.E. Zakharov, A. Pletzer
See also:
escGetPhi

void escGetPsi double *  prof,
int *  ns
 

Get the poloidal flux [Wb].

Parameters:
prof the returned profile
ns the size of the returned profile (input)
Author:
L.E. Zakharov, A. Pletzer
See also:
escGetPsibar

void escGetPsibar double *  prof,
int *  ns
 

Get the poloidal flux/(2*pi) [Wb/rad].

Parameters:
prof the returned profile
ns the size of the returned profile (input)
Author:
L.E. Zakharov, A. Pletzer
See also:
escGetPsi

void escGetQ double *  prof,
int *  ns
 

Get the safety factor (q) profile [-].

Parameters:
prof the returned profile
ns the size of the returned profile (input)
Author:
L.E. Zakharov, A. Pletzer
See also:
escGetIota escGetG escGetP

void escGetR double *  r,
int *  nt1,
int *  ns,
int *  clockwise
 

Get the R coordinates [m]. The poloidal index varies faster.

Parameters:
r the returned array of size [ns][nt1].
nt1 the number of poloidal sections + 1 (input)
ns the radial size (input)
clockwise poloidal angle orientation (1 for clockwise, 0 for counterclockwise)
Author:
L.E. Zakharov, A. Pletzer
See also:
escGetZ

void escGetZ double *  z,
int *  nt1,
int *  ns,
int *  clockwise
 

Get the Z coordinate [m]. The poloidal index varies faster.

Parameters:
r the returned array of size [ns][nt1].
nt1 the number of poloidal sections + 1 (input)
ns the radial size (input)
clockwise poloidal angle orientation (1 for clockwise, 0 for counterclockwise)
Author:
L.E. Zakharov, A. Pletzer
See also:
escGetR


Generated on Tue Sep 28 17:56:37 2010 by  doxygen 1.3.9.1