I'll try to look into it this weekend.
|
dear Bruno its the begining of weekend in your place!:D
please see how can modifying calcMassFlow.thanks. |
FYI: I've updated the post #18: http://www.cfd-online.com/Forums/ope...tml#post418748
|
thank you so much dear Bruno.
I'll test it a tell you. Why rho is there in comment? My case is compressible.its not necessary for me,is it? |
Quote:
Code:
// Factor to multiply the results with (for symmetric or axial cases) |
it works nice.the output is like what swak4Foam run time function gives.
but how can increase time step decimal numbers? and if it can be done that a summation on phi's multiply to time step is outputted then total mass on each patch is obtained in the whole time (like: Total Mass = SUM(mass_flow_rate * time_step_size) ) and it is not required to external softwares. could you please have a look into this work? and it will be fully completed;) thanks. |
Unfortunately I'm not 100% certain if I understand your request correctly.
If the time step is now of fixed size, then you only need to define "scaleFactor" accordingly. If the time step varies... it depends on whether you've saved all of the iterations or not... because with only a few iterations, it will lead to a non-measurable error... ... wait... you want the summation of all results... and place it were?.. I guess at the bottom of the file... If the time step is fixed, you'll be the one assuming the resulting error isn't relevant. Otherwise, you should have calculated this while the solver is running, not after it's finished. I'll try to see if I can still implement this today. Otherwise, it will have to wait till next weekend. |
I use adjustableRunTime.I think it could be possible to multiply each value in column right to difference of value of column left(time)and its before time(upper value) to program.
yes at the end of file or better at a time that user specifies when execute calcMassFlow in terminal in seconds (like:calcMassFlow .002) :rolleyes: |
Hi Bruno
I executed calcMassFlow on a case but this showed: Code:
Create time |
it resolved.an untitled folder had been created accidently in the case folder.
|
All times are GMT -4. The time now is 01:14. |