CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM

problems with dimensionedScalar

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

LinkBack Thread Tools Display Modes
Old   December 4, 2009, 14:00
Default problems with dimensionedScalar
Davide Lupo Conti
Join Date: Nov 2009
Posts: 34
Rep Power: 9
DLC is on a distinguished road
Hi Foamers....

I'm quite new to openFoam, and I'm having few basic problems while programming..
I'm working on interDyMFoam, OF1.5-dev and i'm doing a few changes in the mesh motion.

now I am trying to integrate the equations of motion of a floating body. Therfore need to multiply she body velocity by the deltaT (mesh_.time().deltaT, i suppose) of the PISO loop...

The problem is that mesh_.time().deltaT is a dimensionedScalar, body velocity is a scalar (double I think) and I must assign this product to a scalar (double). Obviously it's giving me ERROR.

How can I do it?

I really need some help....

thanks a lot!

DLC is offline   Reply With Quote

Old   December 5, 2009, 04:58
Senior Member
Laurence R. McGlashan
Join Date: Mar 2009
Posts: 370
Rep Power: 16
l_r_mcglashan will become famous soon enough
mesh_.time().deltaT().value() will give you the scalar value of time without the dimensions.
Laurence R. McGlashan :: Website
l_r_mcglashan is online now   Reply With Quote

Old   December 6, 2009, 12:14
Davide Lupo Conti
Join Date: Nov 2009
Posts: 34
Rep Power: 9
DLC is on a distinguished road
Thanks a lot!...
seems to work now!
thanks again!

DLC is offline   Reply With Quote


dimensioned, mesh, openfoam 1.5-dev, time

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
Needed Benchmark Problems for FSI Mechstud Main CFD Forum 4 July 26, 2011 12:13
Help required to solve Hydraulic related problems aero CFX 0 October 30, 2006 12:00
Some problems with Star CD Micha Siemens 0 August 6, 2003 13:55
Using Fluent for Geophysical Problems Hassid Samuel FLUENT 0 February 23, 2001 07:04
Inverse problems Aleksey Alekseev Main CFD Forum 0 May 12, 1999 15:38

All times are GMT -4. The time now is 10:20.