|
[Sponsors] |
February 20, 2015, 13:15 |
Problem with a deposition equation
|
#1 |
New Member
Julian
Join Date: Feb 2015
Posts: 2
Rep Power: 0 |
Hello everyone
i'm trying to make a solver that can solve this deposition equation Fm*rod* d(r1)/dt = r1*Dw0* d(c)/dx Being Fm, rod and Dw0 constants, and r1 and c variables defined in all the mesh In my solver i use this Code:
{ volVectorField gradienteC = fvc::grad(C); volScalarField dcdx = gradienteC.component(0); fvScalarMatrix depositionEqn ( Fm * rod * fvm::ddt(r1) - r1 * fvm::Sp(Dw0, dcdx) ); depositionEqn.relax(); depositionEqn.solve(); } Code:
--> FOAM FATAL ERROR: incompatible fields for operation [r1] - [grad(C).component(0)] From function checkMethod(const fvMatrix<Type>&, const fvMatrix<Type>&) in file /opt/openfoam231/src/finiteVolume/lnInclude/fvMatrix.C at line 1319. Would be very glad to get any help on this! Thanks in advance. Regards, Julian |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Calculation of the Governing Equations | Mihail | CFX | 7 | September 7, 2014 07:27 |
Solve single but higher order equation by OF 1.6 suffering Problem | alundilong | OpenFOAM Programming & Development | 0 | December 23, 2010 14:53 |
Equation Problem | Velan | Main CFD Forum | 11 | October 2, 2007 18:20 |
Problem with momentum equation | Francisco | Main CFD Forum | 4 | August 5, 2004 21:04 |
Energy equation convergence problem | Reza | Main CFD Forum | 0 | August 27, 2003 14:09 |