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

problems with dimensionedScalar

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 4, 2009, 14:00
Default problems with dimensionedScalar
  #1
DLC
Member
 
Davide Lupo Conti
Join Date: Nov 2009
Posts: 34
Rep Power: 17
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!

Davide
DLC is offline   Reply With Quote

Old   December 5, 2009, 04:58
Default
  #2
Senior Member
 
Laurence R. McGlashan
Join Date: Mar 2009
Posts: 370
Rep Power: 23
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 offline   Reply With Quote

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

Davide
DLC is offline   Reply With Quote

Reply

Tags
dimensioned, mesh, openfoam 1.5-dev, time


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
Needed Benchmark Problems for FSI Mechstud Main CFD Forum 4 July 26, 2011 13: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 14: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 16:38


All times are GMT -4. The time now is 19:56.