コード例 #1
0
def set_input_parameters(dp,
                         dragModel,
                         vy0,
                         md_input_file='./lammps/constant.in'):
    LAMMPS_Writer(md_input_file, 'diameter', dp)
    LAMMPS_Writer(md_input_file, 'dragModel', dragModel)
    LAMMPS_Writer(md_input_file, 'vy0', vy0)
コード例 #2
0
def set_input_parameters(dp,
                         y0,
                         dragModel,
                         Uf,
                         md_input_file='./lammps/resting.in'):
    LAMMPS_Writer(md_input_file, 'diameter', dp)
    LAMMPS_Writer(md_input_file, 'y0', y0)
    LAMMPS_Writer(md_input_file, 'dragModel', dragModel)
    LAMMPS_Writer(md_input_file, 'fluid_velocity', Uf)
コード例 #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
ファイル: test_resting.py プロジェクト: HQChe/cpl-library-1
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)
コード例 #5
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)
コード例 #6
0
def set_input_parameters(Uf, dragModel, md_input_file='./lammps/suzuki.in'):
    LAMMPS_Writer(md_input_file, 'fluid_velocity', Uf)
    LAMMPS_Writer(md_input_file, 'dragModel', dragModel)
コード例 #7
0
def set_input_parameters(dp, dragModel, md_input_file='./lammps/terminal.in'):
    LAMMPS_Writer(md_input_file, 'diameter', dp)
    LAMMPS_Writer(md_input_file, 'dragModel', dragModel)
コード例 #8
0
def set_input_parameters(dp, dragModel, md_input_file):
    LAMMPS_Writer(md_input_file, 'diameter', dp)
    LAMMPS_Writer(md_input_file, 'dragModel', dragModel)