This function calculates the diffusion and free energy profile over the bins. It is used to initialize the system at the beginning of the calculation/MC run. Additionally, it is needed to update the profiles in the Monte Carlo part after the adjustment of a profile coefficient.
The profile is determining with the basis and the coefficients for the diffusion with
and for the free energy with
The diffusion is calculated between to bins on the bin border and the free energy in the center of a bin. The basis is received by the create basis function for the selected model:
list of coefficients
list of the basis part of model