This is an old revision of the document!



Warning: Declaration of syntax_plugin_mathpublish::handle($match, $state, $pos, &$handler) should be compatible with DokuWiki_Syntax_Plugin::handle($match, $state, $pos, Doku_Handler $handler) in /home/np29546/public_html/elmerice/wiki/lib/plugins/mathpublish/syntax.php on line 29

Warning: Declaration of syntax_plugin_mathpublish::render($mode, &$R, $data) should be compatible with DokuWiki_Syntax_Plugin::render($format, Doku_Renderer $renderer, $data) in /home/np29546/public_html/elmerice/wiki/lib/plugins/mathpublish/syntax.php on line 29

Table of Contents

Post-treatments

This page present some information regarding the post-treatment of results.

ElmerPost

ElmerPost is the build-in post-processing tools of Elmer. ElmerPost reads result in Elmer Post type file (.ep).

Mesh deformation

For transient simulation, ElmerPost doesn't upgrade directly the mesh using the variable Mesh Update. This has to be done manually, as follow. First define a new variable to store the initial node coordinates. Enter in the command window (bottom of the main window):

math on = nodes

Then, in the command box of the timestep window:

math nodes = on + Mesh.Update(0:2,time($t)))

Useful scripts

A file containing a matc function can be loaded and executed from the command window:

source myscript.cmd
myMATCfunction

Below is an example to construct a vector variable from 3 independent variable (useful for the AIFlow and Porous solvers):

proc tovector {} {
math {Velocity=0};
math {k=size(Aiflow.1)[1];}
math {Velocity(0,0:k-1)=Aiflow.1};
math {Velocity(1,0:k-1)=Aiflow.2};
math {Velocity(2,0:k-1)=0};
math {Velocity_abs=sqrt(vdot(Velocity,Velocity))};
}

Save it in a file makeVector.cmd and execute it as follow:

load makeVector.cmd
tovector

ParaView

Elmer can export results in vtk or vtu formats. The following solver has to be added and run after all other solvers:

Solver 17
  Exec Solver = After TimeStep
  Exec Interval = 2
  Equation = "result output"
  Procedure = "ResultOutputSolve" "ResultOutputSolver"
  Output File Name = String "myFile.vtu"
  Output Format = String vtu
End

More information regarding this solver can be found in the Elmer documentation. All information regarding the Paraview software given here.

tips/post.1354030887.txt.gz · Last modified: 2012/11/27 15:41 by gag
CC Attribution-Share Alike 4.0 International
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0