<< getMatrix SciFreeFEM grad >>

SciFreeFEM >> SciFreeFEM > getffResult

getffResult

get a result from a FreeFem computation

Calling Sequence

[nodel, trianl, tFunc] = getffResult(strlistvar)
[tFunc] = getffResult(strlistvar)
[nodel, trianl] = getffResult()

Parameters

strlistvar

a string containing the list of variable name (separated by commas) to be extracted from FreeFem

nodel

table of nodes with 3 column [n,x,y]

  • n is the node number column vector

  • x is the x coordinate column vector

  • y is the y coordinate column vector

trianl

is a matrix with 5 columns : [n1,node1,node2,node3,flag] node1,node2,node3 are the number of the nodes which constitutes the triangle. n1 is the number of the triangle and flag is an integer not used here

tFunc

the vector of the solution on each nodes

Description

get a result from a FreeFem computation

Examples

// Plot the mesh after deformation
ff_exec('mesh th1 = movemesh(th, x-u1, y-u2);');
[noeul,trianl] = getffResult();
ff_problem(strcat(['solve(u)  {',...
                   pde_sol(u,div(grad(u)),f),...
           'on(a,b,c,d,e,f) u = 0; };']));

// Get the result as a Scilab variables
[noeul,trianl,tFunc] = getffResult('u');

See Also

Authors

Yann Collette


Report an issue
<< getMatrix SciFreeFEM grad >>