Commit 6f8d18ac authored by Philipp Schäfer's avatar Philipp Schäfer

itaComsolMesh

-added function to read coordinates and number of mesh nodes
parent 78f63050
......@@ -23,6 +23,27 @@ classdef itaComsolMesh < itaComsolNode
supportedSizeNodeProperties = {'hmax', 'hmin', 'hgrad', 'hcurve', 'hnarrow'};
end
%% Properties
methods
function nNodes = GetNumberOfNodes(obj)
%Runs active mesh and returns number of nodes
meshNode = obj.activeNode;
assert(~isempty(meshNode), 'No mesh found.')
meshNode.run();
nNodes = meshNode.getNumVertex();
end
function coords = GetNodeCoordinates(obj)
%Runs active mesh and returns coordinates of its nodes
meshNode = obj.activeNode;
assert(~isempty(meshNode), 'No mesh found.')
meshNode.run();
coords = itaCoordinates( meshNode.getVertex()' );
end
end
%% Size Nodes
methods
function sizeNode = GetMainSizeNode(obj)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment