|March 14, 2008, 08:50||
Hi, I'm trying to write a new
Join Date: Mar 2009
Posts: 19Rep Power: 9
I'm trying to write a new boundary condition where I can use the result of the algebraic solution for the velocity profile of a fluid in a square duct.
The analytical solution includes two summation loops, which I've tried to implement by two for-loops.
My problem is, that in every looping-step I need to calculate the sinus of a product between the magnitue of a VectorField and a scalar and sum this up.
As far as I've understood it the mag(VectorField) gives me a ScalarField as output, but when I try to sum up the so calculated scalarFields my calculation always aborts.
I've already tried to eliminate all other possible reasons for the abortion and if I don't try to sum up the calculated ScalarFields everything works fine.
Is there any kind to "sum-function" included in openfoam or how can I solve this problem?
I've already searched the forum and the Doxygen, but the later looks very cryptic for me (I think, because I'm quite new to openFoam and C++).
Thanks in advance
|Thread||Thread Starter||Forum||Replies||Last Post|
|How to set up an AUTO_WRITE scalarField||xiao||OpenFOAM Running, Solving & CFD||9||July 22, 2010 03:23|
|max for scalarField||maka||OpenFOAM Bugs||9||February 19, 2009 10:43|
|ScalarField division||maka||OpenFOAM Pre-Processing||2||August 27, 2007 05:10|
|Computing a cellcentered scalarField from a vertexcentered scalarField||mbeaudoin||OpenFOAM Meshing & Mesh Conversion||10||February 22, 2007 08:43|
|Replacing components in a scalarField||grtabor||OpenFOAM Running, Solving & CFD||1||February 5, 2007 13:24|