source: MML/trunk/mml/getmcf.m @ 4

Last change on this file since 4 was 4, checked in by zhangj, 11 years ago

Initial import--MML version from SOLEIL@2013

File size: 992 bytes
Line 
1function Alpha = getmcf(ModelString)
2%GETMCF - Returns the momentum compaction factor (MCF) stored in the AD or the model
3%  Alpha = getmcf               % returns getfamilydata('MCF')
4%  Alpha = getmcf('Model')      % returns mcf(THERING)
5%
6% INPUTS
7% 1. ModelString - optional 'Model' or 'Simulator' Calls modelmcf
8%                - default online
9%
10% OUTPUTS
11% 1. Alpha - Momen compaction factor
12%
13% NOTES
14% 1. Make sure the model is up to date before calling.
15%
16% See Also getbrho, getenergy, modelmcf, makephysdata
17
18%
19%  Written by Gregory J. Portmann
20
21if nargin < 1
22    ModelString = '';
23end
24
25if strcmpi(ModelString,'model') | strcmpi(ModelString,'simulator')
26    % Get from the model
27    Alpha = modelmcf;
28else
29    Alpha = getfamilydata('MCF');
30%     try
31%         % Get from the model
32%         Alpha = modelmcf;
33%     catch
34%         Alpha = getfamilydata('MCF');
35%         fprintf('   modelmcf failing so MCF = %f (getfamilydata(''MCF'')) is being used.\n', Alpha);
36%     end
37end
38
Note: See TracBrowser for help on using the repository browser.