Code covered by the BSD License  

Highlights from
FELICITY

image thumbnail

FELICITY

by

 

21 Apr 2011 (Updated )

Finite ELement Implementation and Computational Interface Tool for You

GeoFunc
% FELICITY class for processing level 1 user code:  Geometric Functions.
%
%   obj    = GeoFunc(Domain);
%
%   Domain = Level 1 Domain object, which represents the domain that we want
%            geometric data for (like normal vectors, etc.).
classdef GeoFunc < abstractfunc
    properties %(SetAccess=private,GetAccess=private)
    end
    methods
        function obj = GeoFunc(varargin)
            
            if nargin ~= 1
                disp('Requires 1 argument!');
                disp('First  is a Domain.');
                error('Check the arguments!');
            end
            % init
            Domain = varargin{1};
            obj=obj@abstractfunc('',Domain);
            
            Domain_Name = inputname(1);
            if or(isempty(Domain_Name),strcmp(Domain_Name,''))
                disp('The input Domain must have its own workspace variable,...');
                error('i.e. Domain must be separately defined.');
            else
                obj.Domain.Name = Domain_Name;
            end
            
            % the name is fixed for geometric quantity functions
            obj.Name = ['geom', obj.Domain.Name];
            % SWW: this needs to change eventually!
        end
    end
end

% END %

Contact us