|November 11, 2008, 11:26||
Hi, I have modified icoLagr
Join Date: Mar 2009
Location: Mannheim - Vincennes - Valenciennes, Deutchland - France
Posts: 34Rep Power: 9
I have modified icoLagrangianFoam in a rhoPourousSimpleLagrangianFoam.
I have the position of particules which hit a filter.
Info << "position : "<<particule() << endl work
position : (0.005758021228 0.01650806108 0.001)
Now I whant to write these positions in a file in order see it in paraFoam
I try with C and C++ but it doesn't work because position Type is Vector
std::ofstream file("porous_hit", std::ios_base::out | std::ios_base::trunc);
file << position() << std::endl;
FILE* file = NULL;
file = fopen("porous_result", "a");
I think the only solution is to use IOList but i don't know how
If it works my next step will be to stop only the bigest particules.