pencil.tool_kit.write_forcing_cont ================================== .. py:module:: pencil.tool_kit.write_forcing_cont Functions --------- .. autoapisummary:: pencil.tool_kit.write_forcing_cont.write_forcing_cont Module Contents --------------- .. py:function:: 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 :param a: :type 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. :param outfile: :type outfile: file into which the array should be written :param Example usage: :param -------------: :param >>> import pencil as pc: :param >>> import numpy as np: :param >>> dim = pc.read.dim(): :param >>> a = np.ones((3: :param dim.nx: :param dim.ny: :param dim.nz)): :param >>> pc.tool_kit.write_forcing_cont(a):