|
[Sponsors] |
Converting scalarField to DimensionedScalarField |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 19, 2014, 13:39 |
Converting scalarField to DimensionedScalarField
|
#1 |
Member
Manjunath Reddy
Join Date: Jun 2013
Posts: 47
Rep Power: 13 |
Hiiii,
I have scalarField which i want to convert into DimensionedScalarField Example: scalarField samples(4); samples[0] = 0; samples[1] = 1; samples[2] = 2; samples[3] = 3; I tried so many ways but scalarField is not converting into DimensionedScalarField please help me how to do Thanking you, Regards Manjunath |
|
March 20, 2014, 22:02 |
Scalar to DimensionedScalar
|
#2 | |
Senior Member
Mohammad Shakil Ahmmed
Join Date: Oct 2012
Location: AUS
Posts: 137
Rep Power: 15 |
You can try with the following way:
Code:
dimensionedScalar kT1 ( "kT1", dimensionSet(1, 1, -3, -1, 0, 0, 0), scalar(15) ); #shakil Quote:
|
||
March 21, 2014, 03:04 |
Hiii shakil
|
#3 |
Member
Manjunath Reddy
Join Date: Jun 2013
Posts: 47
Rep Power: 13 |
Thank you for your reply,
It is converting scalar 15 into dimensioned scalar not the field. Regards N.Manjunath |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Creating a symmTensorField from a scalarField | maninthemail | OpenFOAM | 13 | April 22, 2023 07:43 |
Add a scalarField type to the templated DataEntry class | carowjp | OpenFOAM Programming & Development | 2 | May 24, 2016 15:30 |
OpenFOAM 1.7.1 and gcc 4.6.3: scalarField no bounds check? | adhiraj | OpenFOAM | 1 | May 26, 2012 10:20 |
Append scalar to scalarField | Hisham | OpenFOAM Programming & Development | 12 | October 28, 2011 20:42 |
boundary condition scalarField in parallel | nlc | OpenFOAM | 4 | November 5, 2010 20:26 |