Linux commands to write udf for remote Linux nodes
Good day, everyone!
* I am using ANSYS Fluent 14.0 to solve an incompressible steady-state turbulent wind flow problem around a group of buildings.
* I desire to configure the model in my PC operating on Windows OS & send to a remote Linux High Performance Computer (HPC) for faster processing.
* I have used udf (Interpreted) to define the inflow velocity, turb. kinetic energy & dissipation rate profiles.
* I have also been able to set up the fluent.cas & .dat files in the Journal file, and configured the pbs-script.
* But the job would not execute when I sent it to the remote system for processing (I keep getting error message).
* However, when I specified fixed values for the inlet parameters, the program ran.
* I guess the problem is with the udf. I could not write the necessary Fluent text commands for the udf in the Journal file.
* I tried to compile the udf but this also failed.
* I read from ANSYS Fluent udf manual that automatically compiling udfs is not supported on mixed Windows/Linux systems.
* Could someone. pls help me out with the necessary commands.
* In the present Journal file I intend to modify , the solution is terminated by the use of no of iterations using 'solve/iterate n'.
* I desire to use Residuals to terminate the solution.
* Pls what are the commands for effecting this in the Journal file?
Thanking you, in advance.
It should be ok to use the compiled udf as long as you keep the source file in the same directory as your case and data file. When you use the GUI setting interpreted UDF the path for the source files would be expanded to absolute path which would result in error for cases used in different OS. You can use TUI to do the compiling, e.g.
Re: Linux commands to write udf for remote Linux nodes
Thanks so much for your wonderful contributions/comments to the questions I posted.
I now understand that the remote system uses the same order as our local system to monitor convergence.
However, I still attempted compiling the udf but failed.
By the procedure stipulated, the source file is to be kept in the same directory as the case and data files.
But the case and data files are not available or active in Fluent until Fluent is executed with all the b.cs which include the compiled udf. This is not really clear to me.
Pls., kindly shed light on this.
I another case, the domain I am modeling has a surrounding area with non-uniform surface roughness, in which case the surface Roughness Constant, Cs, is outside the upper limit of the range (0.5 - 1.0) that can be specified in Fluent.
I desire to specify a value of Cs greater than 1.0 as has been done in previous researches, and this requires udf.
Pls., what are the udf codes for writing constant value Roughness Constant, Cs.
Thanks again. And hoping to hear from you.
I could sort out the problem. Here is the Script file format:
/define/user-defined/compiled-functions compile "libudf" yes "/address/…/…/…/xxx.c" "" ""
/define/user-defined/compiled-functions load "libudf"
the important thing is that
1- You should not whatsoever define the udf in the serial case that you make because in this case it will look for the address of the file on your computer. I even try text command and it did not work. You need to leave it for the journal file to define the udf file and call the related libraries.
2- I guess reading the data files comes afterwards.
3- I am not sure but I guess that the address of the *.c file should be added when udf is defined ( I have not tried not using the address! )
Hope you find these useful
|All times are GMT -4. The time now is 19:43.|