CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

Problem with a deposition equation

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 20, 2015, 13:15
Default Problem with a deposition equation
  #1
New Member
 
Julian
Join Date: Feb 2015
Posts: 2
Rep Power: 0
TulioVannu is on a distinguished road
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();
}
It compiles well, but when i run it in my case this give me this error

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.
If anyone could help me, i want to know if the equation is writed right in my solvers, and if there is any solution for this error

Would be very glad to get any help on this! Thanks in advance.

Regards, Julian
TulioVannu is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 09:01.