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

phi dimensions problem ddT Scheme with custom code

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By hxaxtma

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 23, 2017, 11:42
Default phi dimensions problem ddT Scheme with custom code
  #1
Senior Member
 
Join Date: Jan 2014
Posts: 179
Rep Power: 12
hxaxtma is on a distinguished road
Hi guys,
in my code I have a code snippet which causes problems, maybe you can help me out with it. The code compiples, when I run a testcase the following error occurs I am using OF 4.1)

Code:
	U=rAU*UEqn.H();
		phi = (fvc::interpolate(U) & mesh.Sf())
                + fvc::ddtCorr(rAU, U, phi); -> This line causes the problem
This is the error message:
Quote:
Time = 0.05

Courant Number mean: 0.595945 max: 14.185
smoothSolver: Solving for Ux, Initial residual = 1, Final residual = 9.7858e-06, No Iterations 140
smoothSolver: Solving for Uy, Initial residual = 1, Final residual = 9.63976e-06, No Iterations 148


--> FOAM FATAL ERROR:
dimensions of phi are not correct

From function Foam::tmp<typename Foam::fv::ddtScheme<Type>::fluxFieldType> Foam::fv::EulerDdtScheme<Type>::fvcDdtPhiCorr(cons t volScalarField&, const Foam::GeometricField<Type, Foam::fvPatchField, Foam::volMesh>&, const fluxFieldType&) [with Type = Foam::Vector<double>; typename Foam::fv::ddtScheme<Type>::fluxFieldType = Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh>; Foam::volScalarField = Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>; Foam::fv::EulerDdtScheme<Type>::fluxFieldType = Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh>]
in file finiteVolume/ddtSchemes/EulerDdtScheme/EulerDdtScheme.C at line 651.
Do you have an idea what I do wrong here?
Nigel Bruce Khan likes this.
hxaxtma 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
Issue with a code for solving a boundary layer problem Vect13 Main CFD Forum 1 September 12, 2017 04:09
Problem in using custom colour maps Sima68 CFX 0 April 17, 2017 23:28
Time Step Problem in NS equations code eulerian Main CFD Forum 0 June 18, 2013 20:12
Switch problem! using 2 custom udf laws at the same time HP FLUENT 0 September 15, 2004 09:48
What kind of Cmmercial CFD code you feel well? Lans Main CFD Forum 13 October 27, 1998 10:20


All times are GMT -4. The time now is 00:53.