Add value to a Foam::volScalarField list
Hello
Is it possible to add a new value to an existing Foam::volScalarField nonuniform List<scalar>? I have seen that a push_back() member exists for vectors in C++, but have not found a similiar member for volScalarField and I'm looking for something similar. If this is not possible, I will have to rewrite the variable in question file for each time step, but this is computationally expensive. For example: Pressure is created in createFields.H and is Code:
p: dimensions [1 -1 -2 0 0 0 0]; Thanks in advance |
|
Thank you Alexey
Just something else out of curiosity. Have you seen anyone adding cells in a solver to the blockMesh. I am able to add new cells now in my solver, so now I just need to set the new cell variables. Hopefully it will not end up in total disaster. |
Hi,
Yes, I've seen several people. Though they were adding cells to dynamicFvMesh not to blockMesh. |
All times are GMT -4. The time now is 11:31. |