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

Error while running code for binary alloy solidification

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 10, 2020, 06:53
Question Error while running code for binary alloy solidification
  #1
New Member
 
d durga prasad
Join Date: Nov 2019
Posts: 5
Rep Power: 6
dp32 is on a distinguished road
Starting time loop

Courant Number mean: 0 max: 0
Time = 0.5

PIMPLE: iteration 1
DILUPBiCGStab: Solving for T, Initial residual = 1, Final residual = 9.11044e-09, No Iterations 33
DILUPBiCGStab: Solving for C, Initial residual = 0.00209571, Final residual = 4.70405e-10, No Iterations 1
THERMO: iteration 1 residual: 0
[0]
[0]
[0] [2]
[2]
[2] --> FOAM FATAL ERROR:
[2] incompatible dimensions for operation
[U[1 -2 -2 0 0 0 0] ] - [U[-1 6 0 0 0 0 0] ]
[2]
[2] From function [3]
[3]
[3] --> FOAM FATAL ERROR:
[3] incompatible dimensions for operation
[U[1 -2 -2 0 0 0 0] ] - [U[-1 6 0 0 0 0 0] ]
[3]
[3] From function void Foam::checkMethod(const Foam::fvMatrix<Type>&, const Foam::fvMatrix<Type>&, const char*) [with Type = Foam::Vector<double>]
[3] in file /home/ubuntu/OpenFOAM/OpenFOAM-5.x/src/finiteVolume/lnInclude/fvMatrix.C at line [1]
[1]
[1] --> FOAM FATAL ERROR:
[1] incompatible dimensions for operation
[U[1 -2 -2 0 0 0 0] ] - [U[-1 6 0 0 0 0 0] ]
[1]
[1] From function void Foam::checkMethod(const Foam::fvMatrix<Type>&, const Foam::fvMatrix<Type>&, const char*) [with Type = Foam::Vector<double>]
[1] in file /home/ubuntu/OpenFOAM/OpenFOAM-5.x/src/finiteVolume/lnInclude/fvMatrix.C at line --> FOAM FATAL ERROR:
[0] incompatible dimensions for operation
[U[1 -2 -2 0 0 0 0] ] - [U[-1 6 0 0 0 0 0] ]
[0]
[0] From function void Foam::checkMethod(const Foam::fvMatrix<Type>&, const Foam::fvMatrix<Type>&, const char*) [with Type = Foam::Vector<double>]
[0] in file /home/ubuntu/OpenFOAM/OpenFOAM-5.x/src/finiteVolume/lnInclude/fvMatrix.C at line 1283.
[0]
FOAM parallel run aborting








I'm getting this error while running my code. could anyone please help me with this?
dp32 is offline   Reply With Quote

Old   March 11, 2020, 03:17
Default Inconsistent dimensions
  #2
Member
 
Thomas Flint
Join Date: Jan 2016
Posts: 60
Rep Power: 10
tom_flint2012 is on a distinguished road
The error is because you are trying to subtract one field from another, and the units of the two fields are not the same.
See the openFOAM input and output guides for guidance. What equations are you solving? You May have missed a multiplicative factor that has dimensions that will make the fields compatible.
tom_flint2012 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
What is the Better Way to Do CFD? John C. Chien Main CFD Forum 54 April 23, 2001 08:10
Open source CFD code development, possible? Dr. Yazid Bindar Main CFD Forum 27 July 18, 2000 00:18
State of the art in CFD technology Juan Carlos GARCIA SALAS Main CFD Forum 39 November 1, 1999 14:34
public CFD Code development Heinz Wilkening Main CFD Forum 38 March 5, 1999 11:44
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 18:24.