|
[Sponsors] |
February 19, 2020, 12:41 |
|
#21 |
New Member
iyad
Join Date: Nov 2019
Posts: 21
Rep Power: 7 |
yes i observe some effects of the source. but after third iter source is not 0.
Last edited by pitch; February 19, 2020 at 13:42. |
|
February 19, 2020, 13:46 |
Profile format
|
#22 |
Senior Member
|
Source will not be 0 after 3 iterations but after 0.03 s. If time-step is 0.003 s then it will take 10 time-steps.
__________________
Regards, Vinerm PM to be used if and only if you do not want something to be shared publicly. PM is considered to be of the least priority. |
|
February 19, 2020, 13:49 |
|
#23 |
New Member
iyad
Join Date: Nov 2019
Posts: 21
Rep Power: 7 |
||
February 19, 2020, 14:10 |
Time-step
|
#24 |
Senior Member
|
If time-step is 0.001, then it will take 3 time-steps. If time-step is 0.003, then it will take one time-step. But it is not connected with iterations.
__________________
Regards, Vinerm PM to be used if and only if you do not want something to be shared publicly. PM is considered to be of the least priority. |
|
February 19, 2020, 14:30 |
|
#25 |
New Member
iyad
Join Date: Nov 2019
Posts: 21
Rep Power: 7 |
||
February 19, 2020, 15:48 |
Problem
|
#26 |
Senior Member
|
Most likely in the calculations of your UDMs. Use your source code but instead of using UDM, just use a constant source between 0 and 0.02 s and 0 value after that. If that works, then it is UDM that is problematic. You can also check the same by plotting contours for UDMs. Contours should show plausible values.
__________________
Regards, Vinerm PM to be used if and only if you do not want something to be shared publicly. PM is considered to be of the least priority. |
|
February 19, 2020, 15:51 |
|
#27 | |
New Member
iyad
Join Date: Nov 2019
Posts: 21
Rep Power: 7 |
Quote:
|
||
February 19, 2020, 16:17 |
Counter vs value
|
#28 |
Senior Member
|
Not the counter but it's value. UDM is supposed to have value varying across domain. Go to contours and plot the UDM that you are assigning as source. If it shows 0, then you know the reason.
__________________
Regards, Vinerm PM to be used if and only if you do not want something to be shared publicly. PM is considered to be of the least priority. |
|
February 19, 2020, 16:23 |
|
#29 |
New Member
iyad
Join Date: Nov 2019
Posts: 21
Rep Power: 7 |
||
February 19, 2020, 16:30 |
Debug
|
#30 |
Senior Member
|
If UDM has value then the source should have it as well. To debug the code, write source values to a text file from within the UDF.
__________________
Regards, Vinerm PM to be used if and only if you do not want something to be shared publicly. PM is considered to be of the least priority. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[swak4Foam] swak4foam for OpenFOAM 4.0 | mnikku | OpenFOAM Community Contributions | 80 | May 17, 2022 09:06 |
[foam-extend.org] Problems installing foam-extend-4.0 on openSUSE 42.2 and Ubuntu 16.04 | ordinary | OpenFOAM Installation | 19 | September 3, 2019 19:13 |
using value of surface integral in source term UDF | morihangi | Fluent UDF and Scheme Programming | 0 | March 23, 2019 04:59 |
SparceImage v1.7.x Issue on MAC OS X | rcarmi | OpenFOAM Installation | 4 | August 14, 2014 07:42 |
Problem compiling a custom Lagrangian library | brbbhatti | OpenFOAM Programming & Development | 2 | July 7, 2014 12:32 |