泵仿真

pipeInputDict

 

/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  v2012                                 |
|   \\  /    A nd           | Website:  www.openfoam.com                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    location    "constant";
    object      pipeInputDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
U_GLOBAL 1.0;
T_GLOBAL 300.0;
P_GLOBAL 1000000.0;


Pipe8{
    Dh    0.326;
    A_ht    0.0;
    N    200;
    L    0.95;
    A_flow    0.25604;
    endPoint    2.5166;
    endElevation    0.383;
    startPoint    1.5666;
    startElevation    0.162;
    connection (Pump1_end  bc);
    U_end_BC  "type zeroGradient;";
    p_rgh_end_BC  "type fixedValue;value uniform 1000000.0;";
    T_end_BC  "type fixedValue;value uniform 300.0;";
    theta    0;
}

Pump1{
    Dh    0.326;
    A_ht    0.0;
    N    200;
    L    1.5666;
    A_flow    0.25604;
    endPoint    1.5666;
    endElevation    0.162;
    startPoint    0.0;
    startElevation    0.0;
    connection (bc  Pipe8_start);
    U_start_BC  "type fixedValue;value uniform (1 0 0);";
    p_rgh_start_BC  "type zeroGradient;";
    T_start_BC  "type fixedValue;value uniform 300.0;";
    theta    0;
}

 

 

fvOptions

/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  v2012                                 |
|   \\  /    A nd           | Website:  www.openfoam.com                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    location    "constant";
    object      fvOptions;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //


flow1
{
    type            flow;
    active true;
    selectionMode cellZone;
    cellZone Pipe8;
}



Pump1
{
    type    pump;
    activate    true;

    selectionMode    cellZones;
    cellZones    (Pump1);

    pumpCurve    table
    (
            (0 0)
            (100 5)
    );
    rpmCurve    table
    (
            (0 100)
            (100 120)
    );
}

 

0f16e3230d886227857de4af93059970

 

 

##############################

posted @ 2025-12-31 22:43  西北逍遥  阅读(4)  评论(0)    收藏  举报