Re: Conjugate heat transfer of simple geometries - comparison with exp data
Posted: Thu Dec 08, 2022 9:09 am
Hello.
If you need user post-processing functions, I can't help because I never used it.
If you need to print results, use this:
zoneVlm: variable to print.
%.2f: format substring, variable value will be printed instead of it. Digit means number of decimal places (please see printf manual, it's the same format).
\n: new line character (you may add it in the beginning of line also).
If you need several variables, just mark their places with format specifiers like in this example and then place comma-separated variables list instead of one variable:
It will print in log (listing), not in GUI window. Also, please note that it's only for core0 (first process), other processes will not print. If you need every process to print, use printf with the same syntax, it will print in GUI window.
If you need to print to separate files, fopen/fprint/fclose will help, you can find many manuals in Internet. But I don't know how to isolate first process (by default, every process will create file and fprint to it).
If you need user post-processing functions, I can't help because I never used it.
If you need to print results, use this:
Code: Select all
bft_printf("Zone volume: %.2f [m3]\n",zoneVlm);
%.2f: format substring, variable value will be printed instead of it. Digit means number of decimal places (please see printf manual, it's the same format).
\n: new line character (you may add it in the beginning of line also).
If you need several variables, just mark their places with format specifiers like in this example and then place comma-separated variables list instead of one variable:
Code: Select all
bft_printf("Zone volume: %.2f [m3], ave temperature: %.1f [C]\n",zoneVlm,tempAve);
If you need to print to separate files, fopen/fprint/fclose will help, you can find many manuals in Internet. But I don't know how to isolate first process (by default, every process will create file and fprint to it).