TAGGED: fluent
-
-
June 15, 2023 at 7:15 pm
-
June 16, 2023 at 8:15 am
Rob
Ansys EmployeeCheck you haven't got the built in compiler selected, it's not needed on Linux as it's a proper OS and has it's own compiler. Unfortunately the built in compiler doesn't link on Linux so can cause problems if selected.
-
June 16, 2023 at 10:49 am
satri
SubscriberI don't have the built in compiler selected.
-
June 16, 2023 at 11:24 am
Rob
Ansys EmployeeWhat's the rest of the message?
-
June 16, 2023 at 3:47 pm
-
June 16, 2023 at 4:02 pm
Rob
Ansys EmployeeDid it compile on Win10? If so, did you use DOS2UNIX on the .c file on Linux before compiling?
-
June 16, 2023 at 4:03 pm
satri
Subscriberyes this works in Windows 10
-
June 16, 2023 at 4:04 pm
satri
Subscriberwhat is DOS2UNIX on .c ? i just transferred the entire folder to Linux system and tried to initiate the simulation
-
June 16, 2023 at 4:17 pm
Rob
Ansys EmployeeDid you open the Fluent session & recompile?
DOS2UNIX is a utility to resolve problems where Windows adds weird and wonderful whitespace characters to text files. Linux thinks these characters mean something and then struggles to compile.
-
June 16, 2023 at 6:23 pm
satri
SubscriberYes I opened fluent and re compiled the UDF... I was not aware of that white space thing.. so does it mean that I have to retype all the UDF and it should compile?
-
June 19, 2023 at 1:34 pm
Rob
Ansys EmployeeNo, the command
DOS2UNIX filename.c
ought to do it.
Does "force=7-2D.c" exist anywhere in your code? Remember Fluent Linux will struggle with spaces/odd characters even more so than Windows.
-
June 21, 2023 at 10:25 pm
-
June 22, 2023 at 8:30 am
Rob
Ansys EmployeeThat looks like an external compiler - open Fluent directly and see what happens. No need to open a case, just Fluent solver. To confirm, you're using the same version of Fluent in both cases?
-
June 29, 2023 at 6:54 pm
-
July 3, 2023 at 8:20 am
Rob
Ansys EmployeeOK, so Fluent loads, what I meant was to try compiling in Fluent and see what's going on.
-
July 5, 2023 at 2:13 pm
satri
SubscriberI get the same message when I use the journal or when I use the GUI.
-
July 5, 2023 at 2:25 pm
Rob
Ansys EmployeeIf you check the "n" and othe parts of the error what are the rules? The common reasons for code to fail on Linux but work on Win10 are whitespace characters and there are a few C commands that aren't supported. Without seeing any of the code (and I won't be debugging it) I can't see why it's not working.
-
July 5, 2023 at 2:31 pm
satri
SubscriberSure i will debug it myself. but what am i supposed to be looking for?
I don't understand this statement
"If you check the "n" and othe parts of the error what are the rules?" which "n" are you referring to?
it works on windows and not on linux this is so strange.
Is there any document which says what is different in linux and windows specifically for ansys udf?
Because i don't see anything wrong with the program because it works well with Windows.
-
July 5, 2023 at 2:55 pm
Rob
Ansys Employee"No rule to make target n, needed by adjust-E" in the original error. Just checked it was Linux UDF that failed on Win10, so back to looking at your code.
-
July 5, 2023 at 3:57 pm
satri
SubscriberNo. Windows UDF is failing on linux. The udf is working fine without any problem in Win.
"No rule to make target n, needed by adjust-E" What does this mean? I don't have any variable named n in adjust-E
-
July 5, 2023 at 4:00 pm
Rob
Ansys EmployeeWhat does adjust-E do?
-
July 5, 2023 at 4:03 pm
satri
Subscriberit computes the electric field.
-
July 11, 2023 at 4:57 pm
satri
SubscriberHello I just wanted to follow up. Is there any resolution to the problem? or can i neglect that error please let me know.
-
July 12, 2023 at 8:02 am
Rob
Ansys EmployeeIf it's an error it's not compiled. Does it do what you expect?
-
July 13, 2023 at 2:41 pm
satri
Subscriberno it doesn't do what i expect it to do
i still see that on the transcript
i see this new error now
i keep getting this error now. I am using the same version of ansys on linux as well as Windows (ansys/21.2). so not sure why this keeps coming up. what is the work around for this? do i need to recreate the model in Linux again?
-
July 13, 2023 at 2:49 pm
Rob
Ansys EmployeeMost of the error is saying the library isn't compiled.
-
July 13, 2023 at 3:19 pm
-
July 13, 2023 at 3:20 pm
-
July 13, 2023 at 3:53 pm
Rob
Ansys EmployeeThen why is the error saying it's not compiled for the current platform?
-
July 13, 2023 at 4:31 pm
satri
SubscriberI dont know. I tried to use the GUI on HPC cluster and it runs and i get the expected results.I believe its the issue with the TUI command.
Does linux have a different tui command syntax? Because the above tui script works without any problems on windows
-
July 13, 2023 at 4:54 pm
satri
Subscribernever mind i found the problem
the marked section has to be different for linux. it asks for header files saperatrtely and I don't have any new header files. but I would like to report this as a problem.
in windows, the above tui script works without any problems. I get the desired output but in linux the TUI script needs to be changed. and another big issue with linux is the GUI is not good and we are advised against using it.
-
July 13, 2023 at 6:32 pm
satri
SubscriberI want to say the problem is not fixed..i am really frustrated with these bad TUI commands of ansys.
If i give this commands individually in the linux GUI it works
but why does it not work when i submit this to lsf as input file. what is wrong here?
it stops at this
define/user-defined/compiled-functions/load "libudf16"
and keeps giving the error as mentioned above.
-
July 14, 2023 at 10:25 am
Rob
Ansys EmployeeI'm always wary of running journals without the / at the beginning of the command string, ie
/define/stuff etc
Why aren't the .c files in the working directory?
-
July 14, 2023 at 2:03 pm
satri
Subscriberits on the working directory. as far as /define goes i have tried both with and without / it works. but why is it not loading?
i cant seem to understand why what is the exact way to load? it loads when i put the same commands on the console but does not work when i put it in load.in file and submit it on LSF
please let me know what is the right format of the command on linux. the above command workes well with windows
-
July 17, 2023 at 3:17 pm
satri
SubscriberHey I am able to run this on the console if i run this separately
run line 1-8
then run lines 9-25
then run lines 26-30
so i think i need to give pauses somewhere
i used to use this when i run the tui on Windows
(cx-pause 2)
i guess this is a GUI command
is there any equivalent command of this in linux? that can run when i pass it in LSF script?
-
July 17, 2023 at 3:55 pm
Rob
Ansys EmployeeThe journal should pause when waiting for a previous line to finish, ie the command after the iterations must wait for the iterations to complete.
What menu level are you in when line 8 completes?
-
July 17, 2023 at 4:31 pm
satri
Subscriberit is in solve level when line 8 completes. but even if i come back to the starting level i am not able to run the lines 9-25 continuously
it gives me the error and after that it runs if i compile it again.
I have to run lines 9-25 twice to make it work. not sure why this happens.
-
July 18, 2023 at 8:03 am
Rob
Ansys EmployeeIf it completes 8 in the /solve level then the next command can't run as there's no define at that level. Hence my comment about the / symbols. Running a journal section twice only makes a difference if it either changes a menu level or accidentally triggers something else.
We used to run setup files 3 times as those used to set models and bcs in such a way as not everything was set on the first pass. Ie buoyancy terms in the viscous panel aren't available until gravity is on operating conditions are after models in the file structure.
-
- You must be logged in to reply to this topic.

Boost Ansys Fluent Simulations with AWS
Computational Fluid Dynamics (CFD) helps engineers design products in which the flow of fluid components is a significant challenge. These different use cases often require large complex models to solve on a traditional workstation. Click here to join this event to learn how to leverage Ansys Fluids on the cloud, thanks to Ansys Gateway powered by AWS.

Earth Rescue – An Ansys Online Series
The climate crisis is here. But so is the human ingenuity to fight it. Earth Rescue reveals what visionary companies are doing today to engineer radical new ideas in the fight against climate change. Click here to watch the first episode.

Ansys Blog
Subscribe to the Ansys Blog to get great new content about the power of simulation delivered right to your email on a weekly basis. With content from Ansys experts, partners and customers you will learn about product development advances, thought leadership and trends and tips to better use Ansys tools. Sign up here.
- Floating point exception in Fluent
- What are the differences between CFX and Fluent?
- Heat transfer coefficient
- Difference between K-epsilon and K-omega Turbulence Model
- Getting graph and tabular data from result in workbench mechanical
- The solver failed with a non-zero exit code of : 2
- Suppress Fluent to open with GUI while performing in journal file
- Mesh Interfaces in ANSYS FLUENT
- Time Step Size and Courant Number
- error: Received signal SIGSEGV
-
7552
-
4424
-
2949
-
1414
-
1322
© 2023 Copyright ANSYS, Inc. All rights reserved.