windse.ParameterManager

The ParameterManager controls the handles importing the parameters from the params.yaml file. These functions don’t need to be accessed by the end user.

Classes

class windse.ParameterManager.Logger(filename, std, rank)
class windse.ParameterManager.Parameters

Parameters is a subclass of pythons dict that adds function specific to windse.

Load(loc, updated_parameters=[])

This function loads the parameters from the .yaml file. It should only be assessed once from the windse.initialize() function.

Parameters:

loc (str) – This string is the location of the .yaml parameters file.

Save(func, filename, subfolder='', val=0, file=None, filetype='default')

This function is used to save the various dolfin.Functions created by windse. It should only be accessed internally.

Parameters:
  • func (dolfin.Function) – The Function to be saved

  • filename (str) – the name of the function

Keyword Arguments:
  • subfolder (str): where to save the files within the output folder

  • n (float): used for saving a series of output. Use n=0 for the first save.

fprint(string, tab=None, offset=0, special=None)

This is just a fancy print function that will tab according to where we are in the solve

Parameters:

string (str) – the string for printing

Keyword Arguments:
  • tab (int): the tab level

pprint()

This function print the contents of the params dict in a more readable format