James,

> However, I have been unable to find out how to find the cell
> dimensions, specifically the length along each axis, in order to get
> the aspect ratio and thus decide how the cell should be divided. Can
> someone tell me how this is done?

We don't have a function that does that right now, but it should be relatively 
easy to add one. For example, in 2d, you'd have a function like this:

  double
  TriaAccessor::extent_in_direction (const unsigned int direction) const
  {
    switch (direction) {
      case 0:
          return std::max(this->line(0)->diameter(),
                              this->line(1)->diameter());
      case 1:
          return std::max(this->line(2)->diameter(),
                              this->line(3)->diameter());
      default:
         Assert (false, ExcIndexRange (direction, 0, 2));
  }

3d would be similar. If you wanted to implement a function like this, we'd be 
happy to add it to the library!

Best
 W.

-------------------------------------------------------------------------
Wolfgang Bangerth                email:            [email protected]
                                 www: http://www.math.tamu.edu/~bangerth/

_______________________________________________
dealii mailing list http://poisson.dealii.org/mailman/listinfo/dealii

Reply via email to