|
[Sponsors] |
new divergence term in alpha1Eqn in inter Foam |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
April 22, 2015, 09:47 |
new divergence term in alpha1Eqn in inter Foam
|
#1 |
Senior Member
Daniel Witte
Join Date: Nov 2011
Posts: 148
Rep Power: 15 |
Hello,
I want to add a term in alpha1Eqn in interFoam to ensure that this equation is solved when there is a gradient in alpha1. Reason: if there is no gradient, only the mass balance needs to be solved, the specy balance is not relevant. I looked at the code for alpha1Eqn: Code:
fvScalarMatrix alpha1Eqn ( #ifdef LTSSOLVE fv::localEulerDdtScheme<scalar>(mesh, rDeltaT.name()).fvmDdt(alpha1) #else fv::EulerDdtScheme<scalar>(mesh).fvmDdt(alpha1) #endif + fv::gaussConvectionScheme<scalar> ( mesh, phi, upwind<scalar>(mesh, phi) ).fvmDiv(phi, alpha1) ); If this would be a simple vector operation, this would be easy. However alpha1 is the unknown variable of the equation system. I tried Code:
- alpha1*fv::gaussConvectionScheme<scalar> ( mesh, phi, upwind<scalar>(mesh, phi) ).fvmDiv(phi) ); Code:
fvc::div(phiHbyA) Regards, Daniel |
|
April 22, 2015, 13:28 |
|
#2 |
Senior Member
Daniel Witte
Join Date: Nov 2011
Posts: 148
Rep Power: 15 |
Found the solution:
Code:
- fvc::div(phi)*fvm::Sp(1,alpha1) |
|
Tags |
alpha1eqn interfoam |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[snappyHexMesh] How to define to right point for locationInMesh | Mirage12 | OpenFOAM Meshing & Mesh Conversion | 7 | March 13, 2016 15:07 |
channelFoam for a 3D pipe | AlmostSurelyRob | OpenFOAM | 3 | June 24, 2011 14:06 |
[Other] cgnsToFoam problems with "QUAD_4" cells | lentschi | OpenFOAM Meshing & Mesh Conversion | 1 | March 9, 2011 05:49 |
ATTENTION! Reliability problems in CFX 5.7 | Joseph | CFX | 14 | April 20, 2010 16:45 |
gmsh2ToFoam | sarajags_89 | OpenFOAM | 0 | November 24, 2009 23:50 |