scalarTransportFoam erased my original data and has very slowly transport results
I used other solver (e.g. pisoFoam) to generate a series of velocity fields.
Then, I wanted to use scalarTransportFoam to calculate the scalar transport by the given velocity fields.
So I just simply type scalarTransportFoam after setting up BC for T in 0 directory and adding DT in transportProperties, as well as some more corresponding modification in the fvSolution and fvSchemes to make it run.
It runs without error, but my original U data has been replaced by the U file in 0 directory and the transport is actually slow, which looks like the U is not read in at all.
Could anybody help me?
Did you start the simulation from latestTime?
I think starting the simulation from latestTime means that only the U from latestTime is used. But what if for every time-step, I want scalarTransportFoam to use the U from that time-directory that was obtained from a different simulation?
Say I have time-directories 0, 0.1, 0.2 etc all with a U file in them for that time, then can i copy these to scalarTransportFoam and get it to use the U from that time if I set my time-step to 0.1 and startTime to 0? I would have to technically move the code block that reads U, into the time-loop in the solver code. But this should work right?
I would opt to include the scalar transport equation directly into U-field solver and solve the scalar transport on the fly. For 3 reasons:
1. It gives you more flexibility towards choice of time step in the scalar transport.
2. It will go faster than storing all U-field and reading them afterwards
3. You need far less storage space
|All times are GMT -4. The time now is 20:29.|