pencil.tool_kit.write_forcing_cont
Functions
|
Writes the file forcing_cont.dat that can be used to specify the form of the continuous forcing in forcing.f90 |
Module Contents
- pencil.tool_kit.write_forcing_cont.write_forcing_cont(a, outfile='forcing_cont.dat')
Writes the file forcing_cont.dat that can be used to specify the form of the continuous forcing in forcing.f90
- Parameters:
a (numpy array specifying the continuous forcing. Shape is expected to be (3,nz,ny,nx). Note that the order of the spatial indices is the same as in the rest of the Pencil Python module.)
outfile (file into which the array should be written)
usage (Example)
-------------
pc (>>> import pencil as)
np (>>> import numpy as)
pc.read.dim() (>>> dim =)
np.ones((3 (>>> a =)
dim.nx
dim.ny
dim.nz))
pc.tool_kit.write_forcing_cont(a) (>>>)