|
[Sponsors] |
January 28, 2016, 04:17 |
Add a source term (body force) in icoFoam
|
#1 |
New Member
hisham
Join Date: Nov 2015
Location: Japan
Posts: 12
Rep Power: 11 |
Hi foamers,
Im a new OP user. Now I create a new source term (body force) named "f" and add to the N-S equation in icoFoam solver. This f represented by using scalar potential. I want to know how can I add this f? Any expert can help me? createFields.H // add source term; Info<< "Reading field f\n" << endl; volVectorField F ( IOobject ( "f", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE ), mesh ); icoFoam-force.C fvVectorMatrix UEqn ( fvm::ddt(U) + fvm::div(phi, U) - fvm::laplacian(nu, U) ); solve(UEqn == f -fvc::grad(p)); //add source term; |
|
January 29, 2016, 05:21 |
|
#2 |
New Member
hisham
Join Date: Nov 2015
Location: Japan
Posts: 12
Rep Power: 11 |
Hi guyz,
I've successful add body force term but the result don't appear any effect from adding this body force? Anyone can help me? |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Add a source term to UEqn.H | KeiJun | OpenFOAM Programming & Development | 6 | December 3, 2022 00:55 |
what is swap4foam ?? | AB08 | OpenFOAM | 28 | February 2, 2016 02:22 |
Problem compiling a custom Lagrangian library | brbbhatti | OpenFOAM Programming & Development | 2 | July 7, 2014 12:32 |
"parabolicVelocity" in OpenFoam 2.1.0 ? | sawyer86 | OpenFOAM Running, Solving & CFD | 21 | February 7, 2012 12:44 |
Problems with SUPG body force term | FEM question | Main CFD Forum | 0 | January 21, 2006 18:51 |