Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
浓度方程如图: 对应的代码该怎么写?写了一些编译都不通过,其中之一为:![0_1511939317349_DD[S]})BF$JL}7$5{$H3]}B.png](/assets/uploads/files/1511939317270-dd-s-bf-jl-7-5-h3-b-resized.png) 求助大神帮忙修改一下:crying:
surfaceScalarField nu("nu",mesh.magSf()/mesh.magSf()*nu) solve ( fvm::ddt(c) +fvm::div(nu, c) -D/(3*phi)*fvc::laplacian(c), mesh.solver(“c”) );
你这个方程写的不对,\nabla c是矢量,c是标量
@李东岳 原文中的方程如图,应该是作者的问题,当做散度的话,这个方程该怎么编译?
surfaceScalarField cPhi("cPhi", c & mesh.sf()); fvScalarMatrix c ( fvm::ddt(c) + fvc::div(cPhi) == source. );