root/src/grid_evolution.cpp

/* [<][>][^][v][top][bottom][index][help] */

DEFINITIONS

This source file includes following definitions.
  1. DeformationCoordFunction
  2. set_timeProvider
  3. evaluate
  4. deformation

   1 /*! \file Grid_evolution.cpp
   2 
   3     \brief <Program Name>
   4 
   5      Revision history:
   6 
   7           Revised by Christian Power dd.mm.yyyy
   8           Originally written by Christian Power
   9                (power22c@gmail.com) 19. Januar 2016
  10 
  11      Implementation details for evolution.h
  12      Created by Christian Power on 19.01.2016
  13      Copyright (c) 2016 Christian Power. All rights reserved.
  14  */
  15 
  16 #include "grid_evolution.h"
  17 #ifdef DEBUG
  18 #include <iostream>
  19 #endif
  20 
  21 Grid_evolution::DeformationCoordFunction::
  22 DeformationCoordFunction(const Parameter::PDE_data& d)
  23 {}
  24 void Grid_evolution::DeformationCoordFunction::
  25 set_timeProvider(Dune::Fem::TimeProviderBase& tp){
  26   tp_ptr = &tp;
  27 }
  28 void Grid_evolution::DeformationCoordFunction::
  29 evaluate(const Domain& x, Range& y) const{  
  30   // double t = tp_ptr->time();
  31   y[0] = x[0];
  32   y[1] = x[1];
  33   y[2] = x[2];          
  34 }
  35 Grid_evolution::DeformationCoordFunction&
  36 Grid_evolution::deformation(const Parameter::PDE_data& d){
  37   static Grid_evolution::DeformationCoordFunction deformation {};
  38   return deformation;
  39 }
  40 /*! Log:
  41  */

/* [<][>][^][v][top][bottom][index][help] */