accu.template
Functions | Variables
ascii_read_meshvector.m File Reference

Go to the source code of this file.

Functions

 fprintf ('Read file %s\n', fname) % Read mesh const ants nn
 

Variables

 function [xc, ia, v]
 
 row_1
 
 col_1
 
 row_2
 
col_2 in C indexing ! nnode = nn(1)
 
 ndim = nn(2)
 
 nelem = nn(3)
 
 nvert = nn(4)
 
Read coordinates row_start = 0+1
 
 row_end = 0+nnode
 
 xc = dlmread(fname,DELIMETER,[row_start 0 row_end ndim-1])
 
 ia = dlmread(fname,DELIMETER,[row_start 0 row_end nvert-1])
 
 v = dlmread(fname,DELIMETER,[row_start 0 row_end 0])
 

Function Documentation

◆ fprintf()

fprintf ( 'Read file %s\n'  ,
fname   
) const

Variable Documentation

◆ ! nnode

col_2 in C indexing ! nnode = nn(1)

Definition at line 22 of file ascii_read_meshvector.m.

◆ col_1

col_1

Definition at line 21 of file ascii_read_meshvector.m.

◆ function

function[xc, ia, v]
Initial value:
= ascii_read_meshvector( fname )
%
% Loads the 2D triangular mesh (coordinates, vertex connectivity)
% together with values on its vertices from an ASCII file.
% Matlab indexing is stored (starts with 1).
%
% The input file format is compatible
% with Mesh_2d_3_matlab:Write_ascii_matlab(..) in jacobi_oo_stl/geom.h
%
%
% IN: fname - filename
% OUT: xc - coordinates
% ia - mesh connectivity
% v - solution vector
DELIMETER = ' '

Definition at line 1 of file ascii_read_meshvector.m.

◆ ia

ia = dlmread(fname,DELIMETER,[row_start 0 row_end nvert-1])

Definition at line 35 of file ascii_read_meshvector.m.

◆ ndim

ndim = nn(2)

Definition at line 23 of file ascii_read_meshvector.m.

◆ nelem

nelem = nn(3)

Definition at line 24 of file ascii_read_meshvector.m.

◆ nvert

nvert = nn(4)

Definition at line 25 of file ascii_read_meshvector.m.

◆ row_1

row_1

Definition at line 21 of file ascii_read_meshvector.m.

◆ row_2

row_2

Definition at line 21 of file ascii_read_meshvector.m.

◆ row_end

row_end = 0+nnode

Definition at line 29 of file ascii_read_meshvector.m.

◆ row_start

Read solution row_start = 0+1

Definition at line 28 of file ascii_read_meshvector.m.

◆ v

v = dlmread(fname,DELIMETER,[row_start 0 row_end 0])

Definition at line 40 of file ascii_read_meshvector.m.

◆ xc

xc = dlmread(fname,DELIMETER,[row_start 0 row_end ndim-1])

Definition at line 30 of file ascii_read_meshvector.m.

xc
xc
Definition: ascii_read_meshvector.m:30
h
h
Definition: visualize_results.m:18
connectivity
function vertex connectivity
Definition: ascii_write_mesh.m:3
v
v
Definition: ascii_read_meshvector.m:40
ia
ia
Definition: ascii_read_meshvector.m:35