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

Interpolations
% FELICITY class for processing level 1 user code.
% This defines an Interpolations object.  This is for collecting all Interpolate objects
% and giving it to the code generation routines.
%
%   obj        = Interpolations(GeoElem);
%
%   GeoElem    = GeoElement that specifies how the global domain (mesh) geometry
%                is represented.
classdef Interpolations
    properties %(SetAccess=private,GetAccess=private)
        GeoElem           % this stores how the geometry (domain) is represented.
        Interp_Expr       % this stores (multiple) Interpolate objects.
        C_Codes           % struct containing filename info for C-Code to include.
    end
    methods
        function obj = Interpolations(varargin)
            
            if (nargin ~= 1)
                disp('Requires 1 argument1!');
                disp('First  is a GeoElement.');
                error('Check the arguments!');
            end
            
            obj.GeoElem      = varargin{1};
            obj.GeoElem.Name = inputname(1);
            obj.Interp_Expr  = [];
            obj.C_Codes      = [];
            
            if ~isa(obj.GeoElem,'GeoElement')
                error('First argument must be a GeoElement!');
            end
        end
    end
end

% END %

Contact us