You have to update the fields rhoE and Ux in every timestep, because at least for Ux in createFields.H you only do this once at the beginning of the simulation.
So your code should look something like this: Code:
// rhoE = ???; // not sure what this is. Do you set this somewhere else in your solver? |
Many thanks Joachim
I will test it and give the feedback. This is my main code: Code:
while (runTime.run()) I updated the Ueqn.H file as: Code:
Regards |
|
Actually, I think, you don't need the Ux field. You could just use U.component(vector::X) in your calculation of rhoEUx. I would even expect the compiler to optimize it away.
|
Most likely, u are correct, since
Code:
U.component(vector::X) By invoking Code:
U.component(vector::X) Code:
rhoEUx = rhoE * U.component(vector::X); Regards |
Hey guys,
Do you know how to create custom variables in postprocessing, ie after the simulation has run? in order to say mucking around with the C and H files? |
All times are GMT -4. The time now is 18:19. |