Changeset 30fbe2e in sasmodels
- Timestamp:
- Oct 1, 2016 12:53:30 PM (8 years ago)
- Branches:
- master, core_shell_microgels, costrafo411, magnetic_model, release_v0.94, release_v0.95, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
- Children:
- 5b60eeb
- Parents:
- 7c57861
- Location:
- sasmodels/models
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/models/mass_surface_fractal.c
ra807206 r30fbe2e 5 5 double fractal_dim_surf, 6 6 double rg_cluster, 7 double primary_rg);7 double rg_primary); 8 8 9 9 static double _mass_surface_fractal_kernel(double q, … … 11 11 double fractal_dim_surf, 12 12 double rg_cluster, 13 double primary_rg)13 double rg_primary) 14 14 { 15 15 //computation … … 19 19 20 20 double rc_norm = rg_cluster * rg_cluster / (3.0 * fractal_dim_mass); 21 double rp_norm = primary_rg * primary_rg/ (3.0 * tot_dim);21 double rp_norm = rg_primary * rg_primary / (3.0 * tot_dim); 22 22 23 23 //x for P … … 44 44 double fractal_dim_surf, 45 45 double rg_cluster, 46 double primary_rg)46 double rg_primary) 47 47 { 48 48 return _mass_surface_fractal_kernel(q, … … 50 50 fractal_dim_surf, 51 51 rg_cluster, 52 primary_rg);52 rg_primary); 53 53 } -
sasmodels/models/mass_surface_fractal.py
ra807206 r30fbe2e 69 69 fractal_dim_surf = Ds 70 70 rg_cluster = Rg 71 primary_rg= rg71 rg_primary = rg 72 72 background = background 73 73 Ref: Schmidt, J Appl Cryst, eq(19), (1991), 24, 414-435 … … 85 85 ["rg_cluster", "Ang", 86.7, [0.0, inf], "", 86 86 "Cluster radius of gyration"], 87 [" primary_rg", "Ang", 4000., [0.0, inf], "",87 ["rg_primary", "Ang", 4000., [0.0, inf], "", 88 88 "Primary particle radius of gyration"], 89 89 ] … … 96 96 fractal_dim_surf=2.3, 97 97 rg_cluster=86.7, 98 primary_rg=4000.0)98 rg_primary=4000.0) 99 99 100 100 tests = [ … … 104 104 'fractal_dim_surf': 2.3, 105 105 'rg_cluster': 86.7, 106 ' primary_rg': 4000.0,106 'rg_primary': 4000.0, 107 107 'background': 0.0, 108 108 }, 0.05, 1.77537e-05], … … 112 112 'fractal_dim_surf': 1.0, 113 113 'rg_cluster': 90.0, 114 ' primary_rg': 4000.0,114 'rg_primary': 4000.0, 115 115 }, 0.001, 0.18562699016], 116 116 … … 118 118 'fractal_dim_surf': 1.0, 119 119 'rg_cluster': 90.0, 120 ' primary_rg': 2000.0,120 'rg_primary': 2000.0, 121 121 'background': 0.8, 122 122 }, 0.001, 1.16539753641], … … 125 125 'fractal_dim_surf': 1.0, 126 126 'rg_cluster': 90.0, 127 ' primary_rg': 1000.0,127 'rg_primary': 1000.0, 128 128 'scale': 10.0, 129 129 'background': 0.0, -
sasmodels/models/pringle.c
r58c3367 r30fbe2e 6 6 double alpha, 7 7 double beta, 8 double sld _pringle,8 double sld, 9 9 double sld_solvent); 10 10 … … 110 110 double alpha, 111 111 double beta, 112 double sld _pringle,112 double sld, 113 113 double sld_solvent) 114 114 { 115 115 double form = _integrate_psi(q, radius, thickness, alpha, beta); 116 double contrast = sld _pringle- sld_solvent;116 double contrast = sld - sld_solvent; 117 117 double volume = M_PI*radius*radius*thickness; 118 118 return 1.0e-4*form * square(contrast * volume); -
sasmodels/models/pringle.py
r5fd684d r30fbe2e 68 68 ["alpha", "", 0.001, [-inf, inf], "volume", "Curvature parameter alpha"], 69 69 ["beta", "", 0.02, [-inf, inf], "volume", "Curvature paramter beta"], 70 ["sld _pringle", "1e-6/Ang^2", 1.0, [-inf, inf], "sld", "Pringle sld"],70 ["sld", "1e-6/Ang^2", 1.0, [-inf, inf], "sld", "Pringle sld"], 71 71 ["sld_solvent", "1e-6/Ang^2", 6.3, [-inf, inf], "sld", "Solvent sld"] 72 72 ] … … 91 91 alpha=0.001, 92 92 beta=0.02, 93 sld _pringle=1.0,93 sld=1.0, 94 94 sld_solvent=6.35) 95 95 … … 100 100 'alpha': 0.001, 101 101 'beta': 0.02, 102 'sld _pringle': 1.0,102 'sld': 1.0, 103 103 'sld_solvent': 6.3, 104 104 'background': 0.001, … … 110 110 'alpha': 0.001, 111 111 'beta': 0.02, 112 'sld _pringle': 1.0,112 'sld': 1.0, 113 113 'sld_solvent': 6.3, 114 114 'background': 0.001, … … 120 120 'alpha': 0.001, 121 121 'beta': 0.02, 122 'sld _pringle': 1.0,122 'sld': 1.0, 123 123 'sld_solvent': 6.3, 124 124 'background': 0.001,
Note: See TracChangeset
for help on using the changeset viewer.