Skip to content
  • 最新
  • Categories
  • 东岳流体
  • 随机看[请狂点我]
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
CFD中文网

CFD中文网

  1. CFD中文网
  2. OpenFOAM
  3. 一个简单的速度压力非迭代求解器

一个简单的速度压力非迭代求解器

Scheduled Pinned Locked Moved OpenFOAM
3 Posts 2 Posters 2.5k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • 李东岳李 Online
    李东岳李 Online
    李东岳 管理员
    wrote on last edited by
    #1

    之前OKSS2课程的一部分:自定义求解器。在icoFoam中替换下述即可:

        while (runTime.loop())
        {
            Info<< "Time = " << runTime.timeName() << nl << endl;
            #include "CourantNo.H"
            solve(fvm::ddt(U) + fvc::div(phi,U));
            U.oldTime() = U;
            solve(fvm::ddt(U) - fvm::laplacian(nu, U));
            phi = linearInterpolate(U) & mesh.Sf();
    
            solve(fvm::laplacian(runTime.deltaT(), p) == fvc::div(phi));
    
            U -= runTime.deltaT()*fvc::grad(p);
            phi = linearInterpolate(U) & mesh.Sf();
    
            runTime.write();
            Info<< "ExecutionTime = " << runTime.elapsedCpuTime() << " s"
                << "  ClockTime = " << runTime.elapsedClockTime() << " s"
                << nl << endl;
        }
    

    9月CFD算法编程课: http://dyfluid.com/class.html

    需要帮助debug算例的看这个 https://cfd-china.com/topic/8018

    1 Reply Last reply
  • S Offline
    S Offline
    Samuel-Tu
    wrote on last edited by
    #2

    这是什么原理啊,有没有资料参考下。

    1 Reply Last reply
  • 李东岳李 Online
    李东岳李 Online
    李东岳 管理员
    wrote on last edited by
    #3

    参考Hirsch 2007: 12.4.1 Basic Approach of Pressure Correction Methods

    9月CFD算法编程课: http://dyfluid.com/class.html

    需要帮助debug算例的看这个 https://cfd-china.com/topic/8018

    1 Reply Last reply

  • Login

  • Login or register to search.
  • First post
    Last post
0
  • 最新
  • Categories
  • 东岳流体
  • 随机看[请狂点我]