|
[Sponsors] |
September 29, 2008, 22:19 |
Hi there
I have been trying
|
#1 |
New Member
ehsan vaghefi
Join Date: Mar 2009
Posts: 9
Rep Power: 17 |
Hi there
I have been trying to add a flux source term to UEqn in SIMPLEfoam. the source term is dependent on x and y coordinates of the point. my UEqn.H looks like this at the moment, but it doesn't like it ************ // Solve the Momentum equation volScalarField x = mesh.C().component(0); volScalarField y = mesh.C().component(1); volScalarField sour = x*x + y*y; //the source tmp<fvvectormatrix> UEqn ( fvm::div(phi, U) + turbulence->divDevReff(U) ); UEqn().relax(); eqnResidual = solve ( UEqn() == -fvc::grad(p) + sour //adding the source ).initialResidual(); maxResidual = max(eqnResidual, maxResidual); ***************************** in general, can I add a scalar value for each element as a flux source ? Cheers |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Can I specify a passive scalar flux source in ccm+ | eric | Siemens | 0 | June 11, 2008 15:48 |
energy source at boundary VS wall heat flux | CFX New | CFX | 2 | June 28, 2007 04:00 |
wall heat flux or boundary source of energy??? | Albi | CFX | 1 | May 4, 2007 12:25 |
Where can I locate the source files of simpleFoam and turboFoam | andycong | OpenFOAM Running, Solving & CFD | 2 | March 6, 2006 04:33 |
radiation source or heat flux BC? | pi | CFX | 4 | September 10, 2004 11:44 |