CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Programming & Development

Problem with a deposition equation

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   February 20, 2015, 13:15
Default Problem with a deposition equation
New Member
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
    volVectorField gradienteC = fvc::grad(C); 
    volScalarField dcdx = gradienteC.component(0); 

   fvScalarMatrix depositionEqn
      Fm * rod * fvm::ddt(r1)
    - r1 * fvm::Sp(Dw0, dcdx)


It compiles well, but when i run it in my case this give me this 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


Thread Tools
Display Modes

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 On
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 06: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 17:20
Problem with momentum equation Francisco Main CFD Forum 4 August 5, 2004 20:04
Energy equation convergence problem Reza Main CFD Forum 0 August 27, 2003 13:09

All times are GMT -4. The time now is 08:29.