desc.io.InputReader.desc_output_to_input
- static InputReader.desc_output_to_input(outfile, infile, objective='force', optimizer='lsq-exact', header=None, ftol=0.01, xtol=1e-06, gtol=1e-06, maxiter=100, threshold=1e-10)Source
Generate a DESC input file from a DESC output file.
DESC will automatically choose continuation parameters
- Parameters:
outfile (str or path-like) – name of the DESC input file to create
infile (str or path-like) – path of the DESC output equilibrium file
objective (str) – objective type used in the input file
optimizer (str) – type of optimizer
header (str) – text to print at the top of the file
ftol (float) – relative tolerance of the objective function f
xtol (float) – relative tolerance of the state vector x
gtol (float) – absolute tolerance of the projected gradient g
maxiter (int) – maximum number of optimizer iterations per continuation step
threshold (float) – Fourier coefficients below this value will be set to 0.