fields and factors in simpleFunctionObjects
I have a specific question regarding simpleFunctionObjects. Here is an extract from my controlDict file:
What I would like to know is whether there is a way of multiplying the (p) fields by a factor in order to log a different value and print it to the screen. Is this possible?
On a further note, is there a method of taking the values from the 'outlet' patch above and adding/subtracting the value for the inlet patch (which I have as a different item), printing this to screen and the log file?
Any information would be greatly appreciated.
Concerning your second question: not with the pure simpleFunctionObjects but with swak4Foam (of which the simpleFunctionObjects are now a part) which has a function object patchExpression (which builds on simpleFunctionObjects) that allows calculation of expressions on patches. An example for a pressure difference would be:
|All times are GMT -4. The time now is 01:34.|