Exemplo n.º 1
0
def test_dimensionless_air(tmpcase):
    """Tests dimensionless air writes to a file"""
    write_standard_thermophysical_properties(tmpcase,
                                             StandardFluid.DIMENSIONLESS_AIR)
    dict_path = os.path.join(tmpcase.root_dir_path, 'constant',
                             'thermophysicalProperties')
    assert os.path.isfile(dict_path)
def main(case_dir='wedge', n_iter=10):
    #Try to create new case directory
    case = create_new_case(case_dir)
    # Add the information needed by blockMesh.
    write_control_dict(case, n_iter)
    write_block_mesh_dict(case)
    #we generate the mes1h
    case.run_tool('blockMesh')
    #we prepare the thermophysical and turbulence properties
    write_standard_thermophysical_properties(case, StandardFluid.DIMENSIONLESS_AIR)
    write_turbulence_properties(case)
    #we write fvScheme and fvSolution
    write_fv_schemes(case)
    write_fv_solution(case)
    write_initial_conditions(case)
    case.run_tool('rhoCentralFoam')
Exemplo n.º 3
0
def test_dimensionless_air(tmpcase):
    """Tests dimensionless air writes to a file"""
    write_standard_thermophysical_properties(tmpcase, StandardFluid.AIR)
    dict_path = os.path.join(tmpcase.root_dir_path, 'constant', 'thermophysicalProperties')
    assert os.path.isfile(dict_path)