CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

scalarTransportFoam erased my original data and has very slowly transport results

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 16, 2012, 17:10
Default scalarTransportFoam erased my original data and has very slowly transport results
  #1
Member
 
foamWang's Avatar
 
Roro Wang
Join Date: Mar 2010
Location: Cambridge, MA, USA
Posts: 30
Rep Power: 16
foamWang is on a distinguished road
Hi foamers,

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?

Thanks.

foamWang
foamWang is offline   Reply With Quote

Old   July 17, 2012, 03:23
Default
  #2
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 29
akidess will become famous soon enough
Did you start the simulation from latestTime?
__________________
*On twitter @akidTwit
*Spend as much time formulating your questions as you expect people to spend on their answer.
akidess is offline   Reply With Quote

Old   October 30, 2013, 17:20
Default
  #3
Member
 
Vishal Achasrya
Join Date: Nov 2011
Posts: 38
Rep Power: 14
vishalsacharya is on a distinguished road
Hi,

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?

Vishal
vishalsacharya is offline   Reply With Quote

Old   October 31, 2013, 02:51
Default
  #4
Senior Member
 
Lieven
Join Date: Dec 2011
Location: Leuven, Belgium
Posts: 299
Rep Power: 22
Lieven will become famous soon enough
Hi Vishal

Quote:
I would have to technically move the code block that reads U, into the time-loop in the solver code
That is indeed one option that will work. Note though, that you limited the choice of time step strongly in this case and... it will be rather slow since IO-operations are quite time-demanding.

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

Cheers,

Lieven
Lieven is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 19:47.