Better understanding of some unknown parameters in scalarcodedsource
Hello everyone!
I used scalarCodedSource for definition of a transient heat source. However, I can't understand the usage of some parameters assigned within the code. For example, what is meaning of the -= sign at codeAddSup? If It adds an additional source term to main S= S_u + S_p x, what's philosophy of the minus sign at it? Or as second question, is codeAddSup an absolute quantity or a specific one? Or as third question, what’s the meaning of sourceTimeCoeffs in this dynamic code? Also, these ambiguous parameters are highlighted with red color at a sample scalarCodedSource as follows: Code:
energySource |
Hello, Asghari.
As I remember C++, the following line Code:
heSource -= 0.1*sqr(time.value())*V; Code:
heSource = heSource - 0.1*sqr(time.value())*V; |
Ok, of cource this is obvious.
However I didn't get my answer. As a better explanation of my questions, I can restate it as following question: Suppose there is an energy source term in a simple solid conduction problem according to the following form: S(h)= t/(t+1)*0.5 (unit is watt/m3 ) :: specific energy source, and Simple Conduction Equation: ddt(rho, h) - laplacian (k/Cp, h) = enthalpy source term Now, I want to use scalarCodedSource for definition of heat (enthalpy) source term. How can I do this operation? Moreover, the meaning of other unkown parameters such as codeCorrect and sourceTimeCoeffs are still ambiguous for me. I have presented scalarCodedSource as follows: ( note that I have pointed all of my questions and doubted options for source term and other unknown parameters with red color) Code:
energySource Thanks a lot for any other help. |
I also face the same problem right now,do you get the answer?
|
Hi!
Just now, some similar discussions is being discussed in following thread: http://www.cfd-online.com/Forums/ope...rce-terms.html You might want to consult the above mentioned thread. |
Thank you very much.
I still do not understand this problem totally,I think I should read the source code and try to get the answer. |
Hi All,
I'm using reactingMultiphaseEulerfoam 3.0 with the fvOptions, scalarCodedSource. I would like to have two sources, one that is a sink and removes some phase 1 and another source that adds the same mass amount of phase 2. The mass removed should be dependent on the mass of phase 1. aka dm1/dt=m1*A Do someone has any idea how it would be best to do it? Thanks! |
All times are GMT -4. The time now is 13:36. |