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

CHT with spray

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 8, 2015, 10:46
Default CHT with spray
  #1
New Member
 
riyaz
Join Date: Oct 2014
Posts: 2
Rep Power: 0
rzi878 is on a distinguished road
Hi,

I am attempting to cobble together chtmultiregionfoam and sprayFoam in order to run some CHT simulations with spray parcels. I have encountered some issues regarding the combustion model and pointers. My c++ is limited and as such I am out of ideas on what to do.

In my createFluidFields.H file I have initialised the combustion pointer list as follows:
Code:
PtrList<combustionModels::psiCombustionModel> combustion(fluidRegions.size());
I have then set the combustion model:
Code:
      combustion.set
      (
    i,
       combustionModels::psiCombustionModel::New
       (
     fluidRegions[i]
     )
       );
In EEqn.H and the other solver files, the combustion term in the equations is
Code:
combustion->Sh()
When I try to compile I get an error like this:
Code:
error: base operand of ‘->’ has non-pointer type ‘Foam::PtrList<Foam::combustionModels::psiCombustionModel>’
Please could someone advise on what I can do to resolve this.

Many thanks,

Riyaz.
rzi878 is offline   Reply With Quote

Old   January 8, 2015, 16:53
Default
  #2
New Member
 
riyaz
Join Date: Oct 2014
Posts: 2
Rep Power: 0
rzi878 is on a distinguished road
I managed to fix the problem. I had incorrectly referenced what I had defined in setRegionFluidFields.H

Although I have run into another problem regarding the SprayCloud:
The errors I get are:
Code:
undefined reference to `typeinfo for Foam::sprayCloud'

undefined reference to `Foam::sprayCloud::typeName'
The spray bits of createFluidFields.H are
Code:
PtrList<basicSprayCloud> parcelsFluid(fluidRegions.size());


//Spray Source
    Info<< "    Adding to parcelsFluid\n" << endl;
    parcelsFluid.set
    (
      i,
     new basicSprayCloud
     (
       "sprayCloud",
      rhoFluid[i],
      UFluid[i],
      gFluid[i],
      thermoFluid[i]
      )
     );
and in setRegionFluidFields.H

Code:
basicSprayCloud& parcels = parcelsFluid[i];
When I look in the src for sprayCloud and basicSprayCloud , it does not indicate that the way I have defined the spray is incorrect. The only reason I can think of is the way in which my Pointers are initiated.
Any help would be greatly appreciated,
Many thanks,

Riyaz
rzi878 is offline   Reply With Quote

Old   December 27, 2016, 09:17
Default
  #3
New Member
 
Join Date: Jul 2016
Posts: 14
Rep Power: 9
liliu is on a distinguished road
Hi riyaz,

I came across the same problem as you had (error: base operand of ‘->’ has non-pointer type ‘Foam::PtrList<Foam::combustionModels:siCombusti onModel>’). wonder if you could tell me how you sorted out the problem. Thank you.

Best Wishes,
Li
liliu 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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Spray total droplet momentum calculation help tarnsharma AVL FIRE 0 July 19, 2012 08:17
[ANSYS Meshing] Meshing for study on fuel spray carolann ANSYS Meshing & Geometry 0 June 25, 2012 02:59
Spray slows then stops coastal593 OpenFOAM Running, Solving & CFD 6 July 31, 2007 16:14
spray injection mmacrb FLUENT 0 January 10, 2007 04:57
problems with unsteady spray simulation Mathias FLUENT 1 July 20, 2006 16:13


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