|
[Sponsors] |
January 8, 2015, 11:46 |
CHT with spray
|
#1 |
New Member
riyaz
Join Date: Oct 2014
Posts: 2
Rep Power: 0 |
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()); Code:
combustion.set ( i, combustionModels::psiCombustionModel::New ( fluidRegions[i] ) ); Code:
combustion->Sh() Code:
error: base operand of ‘->’ has non-pointer type ‘Foam::PtrList<Foam::combustionModels::psiCombustionModel>’ Many thanks, Riyaz. |
|
January 8, 2015, 17:53 |
|
#2 |
New Member
riyaz
Join Date: Oct 2014
Posts: 2
Rep Power: 0 |
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' 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] ) ); Code:
basicSprayCloud& parcels = parcelsFluid[i]; Any help would be greatly appreciated, Many thanks, Riyaz |
|
December 27, 2016, 10:17 |
|
#3 |
New Member
Join Date: Jul 2016
Posts: 14
Rep Power: 10 |
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 |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Spray total droplet momentum calculation help | tarnsharma | AVL FIRE | 0 | July 19, 2012 09:17 |
[ANSYS Meshing] Meshing for study on fuel spray | carolann | ANSYS Meshing & Geometry | 0 | June 25, 2012 03:59 |
Spray slows then stops | coastal593 | OpenFOAM Running, Solving & CFD | 6 | July 31, 2007 17:14 |
spray injection | mmacrb | FLUENT | 0 | January 10, 2007 05:57 |
problems with unsteady spray simulation | Mathias | FLUENT | 1 | July 20, 2006 17:13 |