Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
amdis
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
iwr
amdis
Commits
a9185383
Commit
a9185383
authored
14 years ago
by
Thomas Witkowski
Browse files
Options
Downloads
Patches
Plain Diff
And fixed some license problems. Now I have to pay all my money to SimuNova ...
parent
cdaca04d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
Loading
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
AMDiS/src/MathFunctions.h
+28
-7
28 additions, 7 deletions
AMDiS/src/MathFunctions.h
AMDiS/src/SolutionDataStorage.h
+29
-7
29 additions, 7 deletions
AMDiS/src/SolutionDataStorage.h
with
57 additions
and
14 deletions
AMDiS/src/MathFunctions.h
+
28
−
7
View file @
a9185383
#ifndef AMDIS_MATHFUNCTIONS_H
#define AMDIS_MATHFUNCTIONS_H
{
if
(
r
<
0
)
return
1
;
if
(
r
>
0
)
// ============================================================================
// == ==
// == AMDiS - Adaptive multidimensional simulations ==
// == ==
// == http://www.amdis-fem.org ==
// ==
==
// ============================================================================
//
// Software License for AMDiS
//
...
...
@@ -17,6 +17,27 @@
// 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
0
;
}
...
...
This diff is collapsed.
Click to expand it.
AMDiS/src/SolutionDataStorage.h
+
29
−
7
View file @
a9185383
#ifndef AMDIS_SOLUTION_DATA_STORAGE_H
#define AMDIS_SOLUTION_DATA_STORAGE_H
struct
SolutionHelper
{
typedef
FiniteElemSpace
*
type
;
};
// ============================================================================
// == ==
// == AMDiS - Adaptive multidimensional simulations ==
// == ==
// == http://www.amdis-fem.org ==
// == ==
// ============================================================================
//
// Software License for AMDiS
//
...
...
@@ -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
<
>
struct
SolutionHelper
<
SystemVector
>
{
...
...
@@ -25,6 +46,7 @@
};
/** \brief
* Class to store solution data for one timestep.
*
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment