CoreFourShellModel

sans.models.CoreFourShellModel

Provide functionality for a C extension model

WARNING:THIS FILE WAS GENERATED BY WRAPPERGENERATOR.PY DO NOT MODIFY THIS FILE, MODIFY ..c_extensionscorefourshell.h AND RE-RUN THE GENERATOR SCRIPT
class sans.models.CoreFourShellModel.CoreFourShellModel

Bases: CCoreFourShellModel, sans.models.BaseComponent.BaseComponent

Class that evaluates a CoreFourShellModel model. This file was auto-generated from ..c_extensionscorefourshell.h. Refer to that file and the structure it contains for details of the model. List of default parameters:

scale = 1.0 rad_core0 = 60.0 [A] sld_core0 = 6.4e-06 [1/A^(2)] thick_shell1 = 10.0 [A] sld_shell1 = 1e-06 [1/A^(2)] thick_shell2 = 10.0 [A] sld_shell2 = 2e-06 [1/A^(2)] thick_shell3 = 10.0 [A] sld_shell3 = 3e-06 [1/A^(2)] thick_shell4 = 10.0 [A] sld_shell4 = 4e-06 [1/A^(2)] sld_solv = 6.4e-06 [1/A^(2)] background = 0.001 [1/cm]
calculate_ER()

Calculate the effective radius for P(q)*S(q)

Returns:the value of the effective radius
clone()

Return a identical copy of self

dispersion

Dispersion parameters

evalDistribution(x=[])

Evaluate the model in cartesian coordinates

Parameters:x – input q[], or [qx[], qy[]]
Returns:scattering function P(q[])
getDispParamList()

Return a list of all available parameters for the model

getParam(name)

Set the value of a model parameter

Parameters:name – name of the parameter
getParamList()

Return a list of all available parameters for the model

getParamListWithToken(token, member)
getParamWithToken(name, token, member)
is_fittable(par_name)

Check if a given parameter is fittable or not

Parameters:par_name – the parameter name to check
log

Log

params

Parameters

reset

Reset pair correlation

run(x=0.0)

Evaluate the model

Parameters:x – input q, or [q,phi]
Returns:scattering function P(q)
runXY(x=0.0)

Evaluate the model in cartesian coordinates

Parameters:x – input q, or [qx, qy]
Returns:scattering function P(q)
setParam(name, value)

Set the value of a model parameter

Parameters:
  • name – name of the parameter
  • value – value of the parameter
setParamWithToken(name, value, token, member)
set_dispersion(parameter, dispersion)

Set the dispersion object for a model parameter

Parameters:
  • parameter – name of the parameter [string]
  • dispersion – dispersion object of type DispersionModel
sans.models.CoreFourShellModel.create_CoreFourShellModel()

Table Of Contents

Previous topic

Constant

Next topic

CoreMultiShellModel

This Page