Problems adding volScalarField to rhoCentralFoam
I thought I would be standing in front of just a little problem, when I wanted to add some run-tim-calculated fields to the rhoCentralFoam solver. :(
I would like to calculate e.g. mach number on-the-fly for some easier sampling and so added following to the createFields.H (testet on wedge15Ma5 tutorial):
I want that nonuniform list of scalars for my internal field. What am I doing wrong? :confused:
Thanks in advance!
More elegant (without the modification of the solver) would be a functionObject
Thanks a lot for your fast reply, gschaider.
I realised that actualy what I did, was just create an IOobject at the beginning of the solver run, without taking care of performing any calculation for Ma !inside! the time loop at all... :D
I also thought about using functionObjects, which would be much better, I think but I can't find any documentation on the possibilities and options I have there.
I will post the solution when I got more into it.
|All times are GMT -4. The time now is 01:03.|