MOOSE - Multiscale Object Oriented Simulation Environment
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
ReadCell.cpp File Reference
#include "header.h"
#include "../shell/Shell.h"
#include "ReadCell.h"
#include "../utility/utility.h"
#include "../utility/numutil.h"
#include "CompartmentBase.h"
#include "Compartment.h"
#include "SymCompartment.h"
#include <fstream>
+ Include dependency graph for ReadCell.cpp:

Go to the source code of this file.

Functions

double calcSurf (double, double)
 

Function Documentation

double calcSurf ( double  len,
double  dia 
)

Definition at line 618 of file ReadCell.cpp.

References M_PI.

Referenced by ReadCell::addCanonicalChannel(), ReadCell::buildChannels(), and ReadCell::buildCompartment().

619 {
620  double area = 0.0;
621  if ( len == 0.0 ) // Spherical. Safe to compare with 0.0.
622  area = dia * dia * M_PI;
623  else
624  area = len * dia * M_PI;
625 
626  return area;
627 }
#define M_PI
Definition: numutil.h:34

+ Here is the caller graph for this function: