Beispiel #1
0
    This file is part of Modena.

    Modena is free software; you can redistribute it and/or modify it under
    the terms of the GNU General Public License as published by the Free
    Software Foundation, either version 3 of the License, or (at your option)
    any later version.

    Modena is distributed in the hope that it will be useful, but WITHOUT ANY
    WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
    FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
    details.

    You should have received a copy of the GNU General Public License along
    with Modena.  If not, see <http://www.gnu.org/licenses/>.
@endcond'''

"""
@file      A simple workflow starting the macroscopic code
@author    Henrik Rusche
@copyright 2014-2016, MoDeNa Project. GNU Public License.
@ingroup   twoTank
"""

from modena.Strategy import BackwardMappingScriptTask
from os.path import abspath, dirname, join

# Source code in src/twoTanksMacroscopicProblem.C
m = BackwardMappingScriptTask(
    script=join(dirname(abspath(__file__)),'src','twoTanksMacroscopicProblem')
)
Beispiel #2
0
    Modena is free software; you can redistribute it and/or modify it under
    the terms of the GNU General Public License as published by the Free
    Software Foundation, either version 3 of the License, or (at your option)
    any later version.

    Modena is distributed in the hope that it will be useful, but WITHOUT ANY
    WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
    FOR A PARTICULAR PURPOSE.  See the GNU General Public License
    for more details.

    You should have received a copy of the GNU General Public License along
    with Modena.  If not, see <http://www.gnu.org/licenses/>.
@endcond'''
"""
@file
Python library of FireTasks

@author    Henrik Rusche
@copyright 2014-2015, MoDeNa Project. GNU Public License.
@ingroup   twoTank
"""

from modena.Strategy import BackwardMappingScriptTask
import os

# Source code in src/twoTanksMacroscopicProblem.C
m = BackwardMappingScriptTask(
    script=os.path.dirname(os.path.abspath(__file__)) +
    '/src/twoTanksMacroscopicProblemFortran')
Beispiel #3
0
"""
@file       bubbleGrowth.py
@namespace  bubbleGrowth.bubbleGrowth
@ingroup    mod_bubbleGrowth
@brief      Backward mapping Firetask for Bubble growth model.
@author     Pavel Ferkl
@copyright  2014-2016, MoDeNa Project. GNU Public License.
@details

# Bubble growth python module

Contains a FireTask, which runs the detailed model and copies the results into
the results folder. The relative path and name of the detailed model executable
are hard coded. The FireTask is BackwardMapping, which means that if one of the
lower scale backward mapping models will get out of validity range that model
will be re-fitted to larger range and the detailed model will be re-run. This is
repeated until the detailed model succesfully finishes (or possibly crashes for
other reason, in which case an error is printed out).
"""

import os
from modena.Strategy import BackwardMappingScriptTask

## @var m
# @brief Bubble Growth Application Recipe
# @details
# Runs the detailed model and saves the results.
m = BackwardMappingScriptTask(
    script=os.path.dirname(os.path.abspath(__file__)) + '/src/bblgrExact' +
    ' && cp *.out *.txt ../results/bubbleGrowth/')
Beispiel #4
0
@ingroup    mod_foamAging
@brief      Backward mapping Firetask for Foam aging model.
@author     Pavel Ferkl
@copyright  2014-2016, MoDeNa Project. GNU Public License.
@details

# Foam aging python module

Contains a FireTask, which runs the detailed model and copies the results into
the results folder. The relative path and name of the detailed model executable
are hard coded. The FireTask is BackwardMapping, which means that if one of the
lower scale backward mapping models will get out of validity range that model
will be re-fitted to larger range and the detailed model will be re-run. This is
repeated until the detailed model succesfully finishes (or possibly crashes for
other reason, in which case an error is printed out).
"""

import os
from modena.Strategy import BackwardMappingScriptTask

## @var m
# @brief Foam Aging Application Recipe
# @details
# Runs the detailed model and saves the results.
m = BackwardMappingScriptTask(
    script = os.path.dirname(os.path.abspath(__file__))
        + '/src/degas | tee degas.txt'
        + ' && cp *.csv ../results/foamAging/'
        + ' && cp *.txt ../results/foamAging/'
)
Copyright
    2014-2016 MoDeNa Consortium, All rights reserved.

License
    This file is part of Modena.

    Modena is free software; you can redistribute it and/or modify it under
    the terms of the GNU General Public License as published by the Free
    Software Foundation, either version 3 of the License, or (at your option)
    any later version.

    Modena is distributed in the hope that it will be useful, but WITHOUT ANY
    WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
    FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
    details.

    You should have received a copy of the GNU General Public License along
    with Modena.  If not, see <http://www.gnu.org/licenses/>.
@endcond'''
"""
@file      A simple workflow to start the example
@author    Henrik Rusche
@copyright 2014-2016, MoDeNa Project. GNU Public License.
@ingroup   app_foaming
"""

from modena.Strategy import BackwardMappingScriptTask

# Source code in src/twoTanksMacroscopicProblem.C
m = BackwardMappingScriptTask(script='../src/MacroscopicProblem')
Beispiel #6
0
    This file is part of Modena.

    Modena is free software; you can redistribute it and/or modify it under
    the terms of the GNU General Public License as published by the Free
    Software Foundation, either version 3 of the License, or (at your option)
    any later version.

    Modena is distributed in the hope that it will be useful, but WITHOUT ANY
    WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
    FOR A PARTICULAR PURPOSE.  See the GNU General Public License
    for more details.

    You should have received a copy of the GNU General Public License along
    with Modena.  If not, see <http://www.gnu.org/licenses/>.
@endcond'''
"""
@file
Backward mapping Firetask for Foam ageing model.
Contains path to the detailed model executable.

@author    Pavel Ferkl
@copyright 2014-2015, MoDeNa Project. GNU Public License.
@ingroup   app_aging
"""

import os
from modena.Strategy import BackwardMappingScriptTask

m = BackwardMappingScriptTask(
    script=os.path.dirname(os.path.abspath(__file__)) + '/src/degas')
Beispiel #7
0
    Henrik Rusche

Contributors
'''

import modena
from fireworks import Firework, Workflow, LaunchPad
from fireworks.core.rocket_launcher import rapidfire
from modulefinder import ModuleFinder

from modena.Strategy import BackwardMappingScriptTask
import os

# Source code in src/twoTanksMacroscopicProblem.C
SIMULATION = BackwardMappingScriptTask(
    script='../run.sh'
)


# set up the LaunchPad and reset it
launchpad = LaunchPad()
launchpad.reset('', require_password=False)

# create the individual FireWorks and Workflow
# Source code in src/twoTanksMacroscopicProblem.C
wf = Workflow([Firework(SIMULATION)], {}, name="simulation")

# store workflow and launch it locally
launchpad.add_wf(wf)
rapidfire(launchpad)
Beispiel #8
0
License
    This file is part of Modena.

    Modena is free software; you can redistribute it and/or modify it under
    the terms of the GNU General Public License as published by the Free
    Software Foundation, either version 3 of the License, or (at your option)
    any later version.

    Modena is distributed in the hope that it will be useful, but WITHOUT ANY
    WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
    FOR A PARTICULAR PURPOSE.  See the GNU General Public License
    for more details.

    You should have received a copy of the GNU General Public License along
    with Modena.  If not, see <http://www.gnu.org/licenses/>.
@endcond'''
"""
@file
Backward mapping Firetask for Bubble growth model.
Contains path to the detailed model executable.

@author    Pavel Ferkl
@copyright 2014-2015, MoDeNa Project. GNU Public License.
@ingroup   app_foaming
"""
import os
from modena.Strategy import BackwardMappingScriptTask

m = BackwardMappingScriptTask(
    script=os.path.dirname(os.path.abspath(__file__)) + '/src/bblgrExact')
Beispiel #9
0
    This file is part of Modena.

    Modena is free software; you can redistribute it and/or modify it under
    the terms of the GNU General Public License as published by the Free
    Software Foundation, either version 3 of the License, or (at your option)
    any later version.

    Modena is distributed in the hope that it will be useful, but WITHOUT ANY
    WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
    FOR A PARTICULAR PURPOSE.  See the GNU General Public License
    for more details.

    You should have received a copy of the GNU General Public License along
    with Modena.  If not, see <http://www.gnu.org/licenses/>.
@endcond'''
"""
@file
Backward mapping Firetask for QmomKinetics model.
Contains path to the detailed model executable.

@author    Mohsen Karimi
@copyright 2014-2015, MoDeNa Project. GNU Public License.
@ingroup   app_foaming
"""
import os
from modena.Strategy import BackwardMappingScriptTask

# Source code in src/twoTanksMacroscopicProblem.C
m = BackwardMappingScriptTask(
    script=os.path.dirname(os.path.abspath(__file__)) + '/src/QmomKinetics')
Beispiel #10
0
    with Modena.  If not, see <http://www.gnu.org/licenses/>.
@endcond'''
"""
@ingroup mod_0Dcfd
@namespace CFD_tool_0D.QmomKinetics
@brief Backward mapping Firetask for QmomKinetics model.
       Contains path to the detailed model executable.

@author    Mohsen Karimi
@copyright 2014-2016, MoDeNa Project. GNU Public License.
@ingroup   app_foaming
"""

import os
from modena.Strategy import BackwardMappingScriptTask

## @var m
# @brief Detailed Application Recipe
# @details
#
#
# @attention
# @pre
# @note
# @todo
# @warning
# @bug
m = BackwardMappingScriptTask(
    script=os.path.dirname(os.path.abspath(__file__)) + '/src/QmomKinetics' +
    ' && cp *.txt ../results/CFD0D/')