mathcomp.io
Class MatlabExport

java.lang.Object
  extended by mathcomp.io.MatlabExport

public class MatlabExport
extends java.lang.Object

An export routine for matlab visualization.

Author:
ch.wust

Constructor Summary
MatlabExport()
           
 
Method Summary
static void export1D_projection(java.io.File file, Surface s, Surface t, int index)
           
static void exportExactSolution(Assembler ass)
           
static void exportMatrix(Matrix m, java.lang.String fileName)
           
static void exportMiniCFD(Assembler ass, Vector x, java.lang.String fileName)
           
static void exportScalar2D(java.io.File file, Surface s)
          Generates a file of the form x1 y1 sol(x1,y1) \newLine x2 y2 sol(x2,y2) \newLine ...
static void exportScalar2D(java.io.File file, Vector x)
           
static void exportSlipNormals(java.util.Map slipNormals)
           
static void exportSolutionMiniElements(Assembler ass, Vector x, java.lang.String fileName)
           
static void exportStokesSolution(Assembler ass, Vector x)
           
static void exportVector(Vector v, Assembler ass, java.lang.String fileName)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MatlabExport

public MatlabExport()
Method Detail

exportScalar2D

public static void exportScalar2D(java.io.File file,
                                  Surface s)
Generates a file of the form x1 y1 sol(x1,y1) \newLine x2 y2 sol(x2,y2) \newLine ... which can be visualized by the m-file visualize.m in Matlab

Parameters:
fileName - the fileName - approx.dat cause standart in visualize.m is preferred
s - the Surface Object to be exported

exportScalar2D

public static void exportScalar2D(java.io.File file,
                                  Vector x)

export1D_projection

public static void export1D_projection(java.io.File file,
                                       Surface s,
                                       Surface t,
                                       int index)

exportStokesSolution

public static void exportStokesSolution(Assembler ass,
                                        Vector x)

exportMiniCFD

public static void exportMiniCFD(Assembler ass,
                                 Vector x,
                                 java.lang.String fileName)

exportSolutionMiniElements

public static void exportSolutionMiniElements(Assembler ass,
                                              Vector x,
                                              java.lang.String fileName)

exportExactSolution

public static void exportExactSolution(Assembler ass)

exportMatrix

public static void exportMatrix(Matrix m,
                                java.lang.String fileName)

exportVector

public static void exportVector(Vector v,
                                Assembler ass,
                                java.lang.String fileName)

exportSlipNormals

public static void exportSlipNormals(java.util.Map slipNormals)