Skip to content
Snippets Groups Projects
Commit d491f818 authored by Elias Pipping's avatar Elias Pipping
Browse files

[Problem] Dirichlet: Increase linearly at first

parent e94b7918
No related branches found
No related tags found
No related merge requests found
...@@ -4,7 +4,11 @@ class neumannCondition: ...@@ -4,7 +4,11 @@ class neumannCondition:
class velocityDirichletCondition: class velocityDirichletCondition:
def __call__(self, relativeTime): def __call__(self, relativeTime):
return 2e-4 if relativeTime <= 0.25:
factor = 4*relativeTime;
else:
factor = 1
return 2e-4 * factor
Functions = { Functions = {
'neumannCondition' : neumannCondition(), 'neumannCondition' : neumannCondition(),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment