# Converting scalarField to DimensionedScalarField

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

 March 19, 2014, 13:39 Converting scalarField to DimensionedScalarField #1 Member   Manjunath Reddy Join Date: Jun 2013 Posts: 47 Rep Power: 6 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

Join Date: Oct 2012
Location: AUS
Posts: 132
Rep Power: 8
You can try with the following way:
Code:
dimensionedScalar kT1
(
"kT1",
dimensionSet(1, 1, -3, -1, 0, 0, 0),
scalar(15)
);
Cheers,
#shakil

Quote:
 Originally Posted by manju819 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 21, 2014, 03:04 Hiii shakil #3 Member   Manjunath Reddy Join Date: Jun 2013 Posts: 47 Rep Power: 6 Thank you for your reply, It is converting scalar 15 into dimensioned scalar not the field. Regards N.Manjunath

 Thread Tools Display Modes Linear Mode

 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 OffTrackbacks are On Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post carowjp OpenFOAM Programming & Development 2 May 24, 2016 14:30 adhiraj OpenFOAM 1 May 26, 2012 09:20 Hisham OpenFOAM Programming & Development 12 October 28, 2011 19:42 maninthemail OpenFOAM 2 September 30, 2011 04:13 nlc OpenFOAM 4 November 5, 2010 20:26

All times are GMT -4. The time now is 14:47.