Commit a9185383 authored by Thomas Witkowski's avatar Thomas Witkowski
Browse files

And fixed some license problems. Now I have to pay all my money to SimuNova ...

parent cdaca04d
#ifndef AMDIS_MATHFUNCTIONS_H // ============================================================================
#define AMDIS_MATHFUNCTIONS_H // == ==
// == AMDiS - Adaptive multidimensional simulations ==
{ // == ==
if (r < 0) // == http://www.amdis-fem.org ==
return 1; // == ==
if (r > 0) // ============================================================================
// //
// Software License for AMDiS // Software License for AMDiS
// //
...@@ -17,6 +17,27 @@ ...@@ -17,6 +17,27 @@
// See also license.opensource.txt in the distribution. // See also license.opensource.txt in the distribution.
/** \file MathFunctions.h */
#ifndef AMDIS_MATHFUNCTIONS_H
#define AMDIS_MATHFUNCTIONS_H
#include "Global.h"
#include <limits>
using namespace std;
namespace AMDiS {
//converts signed distance to phasefield
inline double Phi1(double r, double eps) { return 0.5 * (1 - tanh(3 * r / eps)); }
inline double Phi2(double r, double eps) { return 0.5 * (1 + tanh(3 * r / eps)); }
//levelset: positive (1) in the set, negative (-1) outside, zero on the boundary
inline double LevelSet(double r)
{
if (r < 0)
return 1;
if (r > 0)
return -1; return -1;
return 0; return 0;
} }
......
#ifndef AMDIS_SOLUTION_DATA_STORAGE_H // ============================================================================
#define AMDIS_SOLUTION_DATA_STORAGE_H // == ==
// == AMDiS - Adaptive multidimensional simulations ==
struct SolutionHelper // == ==
{ // == http://www.amdis-fem.org ==
typedef FiniteElemSpace* type; // == ==
}; // ============================================================================
// //
// Software License for AMDiS // Software License for AMDiS
// //
...@@ -18,6 +18,27 @@ ...@@ -18,6 +18,27 @@
/** \file SolutionDataStorage.h */
#ifndef AMDIS_SOLUTION_DATA_STORAGE_H
#define AMDIS_SOLUTION_DATA_STORAGE_H
#include <iostream>
#include <fstream>
#include <vector>
#include <map>
#include "DOFVector.h"
#include "SystemVector.h"
#include "Parameters.h"
namespace AMDiS {
template<typename T>
struct SolutionHelper
{
typedef FiniteElemSpace* type;
};
template <> template <>
struct SolutionHelper<SystemVector> struct SolutionHelper<SystemVector>
{ {
...@@ -25,6 +46,7 @@ ...@@ -25,6 +46,7 @@
}; };
/** \brief /** \brief
* Class to store solution data for one timestep. * Class to store solution data for one timestep.
* *
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment