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

Dimension problem

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 24, 2006, 21:25
Default I am getting the following err
  #1
New Member
 
Faroque Hossain
Join Date: Mar 2009
Posts: 5
Rep Power: 17
faroque is on a distinguished road
I am getting the following error.

-----------------------------------------------
--> FOAM FATAL ERROR : incompatible dimensions for operation
[U[0 1 -1 0 0 0 0] ] - [U[0 -1 0 0 0 0 0] ]

From function checkMethod(const fvMatrix<type>&, const fvMatrix<type>&)
in file /home/faroque/OpenFOAM/OpenFOAM-1.3/src/finiteVolume/lnInclude/fvMatrix.C at line 1024.

FOAM aborting

Foam::error::printStack(Foam:stream&)
Foam::error::abort()
./newApp [0x80525e5]
./newApp [0x8061e31]
./newApp [0x804f354]
__libc_start_main
__gxx_personality_v0
0Aborted
---------------------------------------------
It seem to me problem in the dimension defition for my volScalarField variable. I defined variable dimension like follwoing:

dimension [0 0 0 1 0 0 0]

Could someone help me?
faroque is offline   Reply With Quote

Old   November 24, 2006, 21:29
Default Your error says the simulation
  #2
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,907
Rep Power: 33
hjasak will become famous soon enough
Your error says the simulation has failed in the momentum equation - one of the terms you've added has got wrong dimensions.

Hrv
__________________
Hrvoje Jasak
Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk
hjasak is offline   Reply With Quote

Old   November 24, 2006, 21:56
Default Thanks for the reply. I have
  #3
New Member
 
Faroque Hossain
Join Date: Mar 2009
Posts: 5
Rep Power: 17
faroque is on a distinguished road
Thanks for the reply.
I have set the equation in following way..

-------------------------------------------------
solve
(
fvm::ddt(T) == fvm::laplacian(T)
);
--------------------------------------------------
where T is a volScalarField. Did I make any mistake here?

--
Faroque
faroque is offline   Reply With Quote

Old   November 25, 2006, 10:20
Default Hi, there should be a trans
  #4
Senior Member
 
Stephan Gerber
Join Date: Mar 2009
Location: Germany
Posts: 118
Rep Power: 17
stephan is on a distinguished road
Hi,

there should be a transportcoefficient for temperatur in this kind of equation?!
sth like: a*ddt(T)=laplaceian(T),where a is sth like
rho*c/lambda.
otherwise your dimensions are K/s on the left side and K/m^2 on the right side.
for the value of the transport coefficient you should look i a textbook to find something for your material...
stephan
stephan is offline   Reply With Quote

Old   November 26, 2006, 07:39
Default hi, if u want to use the e
  #5
New Member
 
Adrian Magda
Join Date: Mar 2009
Posts: 7
Rep Power: 17
amagda is on a distinguished road
hi,

if u want to use the equation like that the code should looke like:

solve
(
fvm::ddt(T) - fvm::laplacian(
dimensionedScalar
(
"scal", dimensionSet(0, 2, -1, 0, 0), 1),
T)
);
}

Actually u just multiply with a scalar with unit value 1[m2/s]

Adrian
amagda is offline   Reply With Quote

Old   February 19, 2008, 09:56
Default Isn't there a way to tell the
  #6
Senior Member
 
John Deas
Join Date: Mar 2009
Posts: 160
Rep Power: 17
johndeas is on a distinguished road
Isn't there a way to tell the solver that space and time variables used for the derivation are dimensionless ?
johndeas 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
Dimension problem with operation scale booz OpenFOAM Pre-Processing 0 October 10, 2008 04:57
Dimension problem with dyn LES models fabian_korn OpenFOAM Running, Solving & CFD 0 February 4, 2008 06:35
Is one dimension problem possible for Fluent alpha FLUENT 1 April 7, 2005 06:37
problem with grid dimension nisheet goyal Phoenics 1 June 18, 2001 10:28


All times are GMT -4. The time now is 05:21.