示例#1
0
def set_input_parameters(Uf, dragModel, md_input_file='./lammps/fluidised.in'):
    LAMMPS_Writer(md_input_file, 'dragModel', dragModel)
    OpenFOAM_Writer_0_File('./openfoam/0/Ub',
                           'inlet',
                           Uf,
                           isScalar=False,
                           axis_val=1)
def set_input_parameters(Uf,
                         dragModel,
                         md_input_file='./MD_dummy_column.py',
                         cfd_case_dir='./openfoam/'):

    MOCK_Writer(md_input_file, 'dragModel', dragModel)
    OpenFOAM_Writer_0_File(cfd_case_dir + '0/Ub',
                           'inlet',
                           Uf,
                           isScalar=False,
                           axis_val=1)
示例#3
0
def set_input_parameters(Uf,
                         dragModel,
                         movementType,
                         md_input_file='./lammps/column.in',
                         cfd_case_dir='./openfoam/'):

    LAMMPS_Writer(md_input_file, 'dragModel', dragModel)
    LAMMPS_Writer(md_input_file, 'movementType', movementType)
    OpenFOAM_Writer_0_File('./openfoam/0/Ub',
                           'inlet',
                           Uf,
                           isScalar=False,
                           axis_val=1)
示例#4
0
def set_input_parameters(dp,
                         y0,
                         dragModel,
                         Uf,
                         md_input_file='./lammps/resting.in',
                         cfd_case_dir='./openfoam/'):

    LAMMPS_Writer(md_input_file, 'diameter', dp)
    LAMMPS_Writer(md_input_file, 'y0', y0)
    LAMMPS_Writer(md_input_file, 'dragModel', dragModel)
    OpenFOAM_Writer_0_File('./openfoam/0/Ub',
                           'inlet',
                           Uf,
                           isScalar=False,
                           axis_val=1)