examples/comet_stems.cpp File Reference

#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <stdlib.h>
#include "rlog/rlog.h"
#include "rlog/rloglocation.h"
#include "rlog/Error.h"
#include "rlog/RLogChannel.h"
#include "rlog/StdioNode.h"
#include "rlog/RLogTime.h"
#include "myrlog.h"
#include <algorithm>
#include <iostream>
#include <fstream>
#include <cmath>
#include <ml_include.h>
#include <Epetra_SerialComm.h>
#include "optparse/TypedOptionParser.h"
#include "pbe.h"
#include <Trilinos_Util_CommandLineParser.h>
#include <Teuchos_ParameterList.hpp>
#include <ml_epetra_preconditioner.h>
#include "adaptsim.h"
#include "spline.h"
#include "romberg.h"
#include "CircleZ.h"
#include "EfieldIntegrand.h"
#include "LoggingFunction.h"
#include "clp_utils.h"
#include "vector.h"
#include "tetmesh.h"
#include "nedelecmesh.h"
#include "femaxmesh.h"
#include "vtkexport.h"
#include "femaxxdriver.h"

Include dependency graph for comet_stems.cpp:

Go to the source code of this file.

Namespaces

namespace  std

Classes

class  CometGapFinder

Defines

#define DISABLE_QROMB   1

Functions

void finalize ()
void eval_tangetial_efield (FemaxxDriver &driver, const colarray::Vector< double > &q, string gnuplot_filename)
void eval_gap_voltage (FemaxxDriver &driver, const colarray::Vector< double > &q, string gnuplot_filename)
void export_mesh (string file, const mesh::TetMesh *tmesh)
int main (int argc, char *argv[])


Define Documentation

#define DISABLE_QROMB   1

Definition at line 62 of file comet_stems.cpp.


Function Documentation

void eval_gap_voltage ( FemaxxDriver driver,
const colarray::Vector< double > &  q,
string  gnuplot_filename 
)

Evaluate gap voltage for all 8 gaps for a range of radii.

Parameters:
driver FemaxxDriver object.
q Eigenvector, representing the electric field.
gnuplot_filename Name of output file containg the calculated voltages. For gnuplot use.

Definition at line 361 of file comet_stems.cpp.

References NR::adaptsim(), LoggingFunction< FunctionType, ScalarType >::enable_plot(), FemaxxDriver::get_comm(), FemaxxDriver::get_femax_mesh(), FemaxMesh::get_nedelec_mesh(), LoggingFunction< FunctionType, ScalarType >::get_num_eval(), mesh::TetMesh::get_octree(), FemaxxDriver::get_tet_mesh(), LoggingFunction< FunctionType, ScalarType >::get_y_max(), LoggingFunction< FunctionType, ScalarType >::get_y_min(), NR::qromb(), LoggingFunction< FunctionType, ScalarType >::reset(), tmesh(), and tol.

Referenced by main().

Here is the call graph for this function:

void eval_tangetial_efield ( FemaxxDriver driver,
const colarray::Vector< double > &  q,
string  gnuplot_filename 
)

Evaluate tangential component of E-field for a set of radii.

Parameters:
driver FemaxxDriver object.
q Eigenvector, representing the electric field.
gnuplot_filename Name of output file. For gnuplot use.

Definition at line 323 of file comet_stems.cpp.

References FemaxxDriver::get_femax_mesh(), FemaxMesh::get_nedelec_mesh(), mesh::TetMesh::get_octree(), FemaxxDriver::get_tet_mesh(), pi, and tmesh().

Referenced by main().

Here is the call graph for this function:

void export_mesh ( string  file,
const mesh::TetMesh tmesh 
)

Export tetrahedral mesh to VTK file.

Definition at line 426 of file comet_stems.cpp.

References mesh::Tet::get_corner(), mesh::TetMesh::get_nof_points(), mesh::TetMesh::get_nof_tets(), mesh::TetMesh::get_point(), mesh::TetMesh::get_tet(), mesh::Vector3::x, mesh::Vector3::y, and mesh::Vector3::z.

Referenced by main().

Here is the call graph for this function:

void finalize (  ) 

Called before process exits.

Definition at line 68 of file comet_stems.cpp.

Referenced by main().

int main ( int  argc,
char *  argv[] 
)

Main driver program.

Definition at line 482 of file comet_stems.cpp.

References comm, eval_gap_voltage(), eval_tangetial_efield(), export_mesh(), finalize(), get_log_file_name(), lambda, log_command_line_args(), pbe_start, pbe_stop, mesh::TetMesh::point_begin(), mesh::TetMesh::point_end(), and tmesh().

Here is the call graph for this function:


Generated on Fri Oct 26 13:35:13 2007 for FEMAXX (Finite Element Maxwell Eigensolver) by  doxygen 1.4.7