Skip to content
Snippets Groups Projects
boundaryconditions.py 414 B
Newer Older
class neumannCondition:
    def __call__(self, relativeTime):
Elias Pipping's avatar
Elias Pipping committed

class velocityDirichletCondition:
    def __call__(self, relativeTime):
        if relativeTime <= 0.25:
            factor = 4*relativeTime;
        else:
            factor = 1
        return 2e-4 * factor

Functions = {
    'neumannCondition' : neumannCondition(),
    'velocityDirichletCondition' : velocityDirichletCondition()