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

How to use DimensionedField in 141 like in 15

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 22, 2008, 11:36
Default Hi everyone. i am sorry for i
  #1
Senior Member
 
wayne.zhang
Join Date: Mar 2009
Location: Shanghai, Shanghai, P.R.China
Posts: 309
Rep Power: 18
waynezw0618 is on a distinguished road
Send a message via MSN to waynezw0618 Send a message via Skype™ to waynezw0618
Hi everyone.
i am sorry for i still cannot run the openfoam 1.5 on the school`s cluster,but i am interested in solver of simpleSRFFoam in 1.5,so i tried to make it run in the 1.4.1,althoungh i have change the turbulence model and operater relative.still have the problem that,SRF->Su() return a DimensiondField<foam::vector,foam::volmesh> in 1.5 which is inherant from DimensiondField.but there is no such inherance in 1.4.1.

so there will be some building error like:

/var/software/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/fvMatrix.C: In function Foam::tmp<foam::fvmatrix<type> > Foam::operator+(const Foam::tmp<foam::fvmatrix<type> >&, const Foam::tmp<foam::dimensionedfield<type,> >&) [with Type = Foam::Vector<double>]:
simpleSRFFoam.C:72: instantiated from here
/var/software/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/fvMatrix.C:1345 : error: no matching function for call to checkMethod(const Foam::fvMatrix<foam::vector<double> >&, const Foam::tmp<foam::dimensionedfield<foam::vector<doub le>, Foam::volMesh> >&, const char [2])
/var/software/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/fvMatrix.C:1347 : error: const class Foam::tmp<foam::dimensionedfield<foam::vector<doub le>, Foam::volMesh> > has no member named field
/var/software/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/fvMatrix.C:1347 : error: const class Foam::tmp<foam::dimensionedfield<foam::vector<doub le>, Foam::volMesh> > has no member named mesh
make: *** [Make/linuxGccDPOpt/simpleSRFFoam.o] Error 1


how can i go on with migrating simpleSRFFoam from 1.5 to 1.4? is there anyone can help me ?

wayne
waynezw0618 is offline   Reply With Quote

Old   March 23, 2016, 03:53
Default
  #2
New Member
 
QuocThien
Join Date: Apr 2013
Posts: 16
Rep Power: 13
neiht is on a distinguished road
i think the solution is
volVectorFiled:imensionedField
neiht 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



All times are GMT -4. The time now is 17:36.