-
-
June 12, 2023 at 1:25 pm
Ramesh Chandra Mishra
SubscriberHi
I am trying to run a simulation both on my PC and HPC but velocity profile at the inlet is comletely different in both the results. My simulation involves a UDF. Can someone point out how this can be fixed?
I am attaching my journal file for reference.
Â
define/user-defined/compiled-functions load "libudf"
/file/read-case STD_k-epsilon_2.cas.h5
/define/boundary-conditions/velocity-inlet inlet no no yes yes yes yes "udf" "velocity_profile::libudf" no 0 no 300 yes yes yes "udf" "k_profile::libudf" yes yes "udf" "dissip_profile::libudf" yes no 0
solve/initialize/compute-defaults/velocity-inlet/inlet
solve/initialize/initialize-flow
/solve/iterate 10000
quit/file
write-case-data
y
quit
quit
quit
quit
quit
quit
quit
quit
quit
quit
quit
quit
quitexit
Â
-
June 12, 2023 at 3:34 pm
Rob
Forum ModeratorSome images may help. Have you opened both cases to see what's going on?Â
As an aside missing the first / on the line opens you up for all sorts of fun if you happen to be in the wrong menu level when you trigger the journal.Â
-
June 13, 2023 at 2:52 am
-
June 13, 2023 at 8:33 am
Rob
Forum ModeratorSo, the UDF profile didn't load on the HPC. Did you recompile the .c file on the cluster?
-
June 13, 2023 at 8:41 am
Ramesh Chandra Mishra
SubscriberYes I did and it did compile because I can see velocity at other portions of my domain but just at the inlet its zero.Â
-
June 13, 2023 at 8:47 am
Ramesh Chandra Mishra
SubscriberI think I am writing boundary conditions wrong in the jornal file. Can you somehow confirm whether the command in journal file is correct for booundary conditions.
-
June 13, 2023 at 8:57 am
Rob
Forum ModeratorIf the inlet is zero how is flow happening elsewhere?Â
The command varies based on which models are on, open a case locally and see what happens when you try the command. One tip, in TUI journals the first /  for /define forces the full command to run from root, define/whatever if launched from non-root level will fail.Â
-
June 13, 2023 at 9:08 am
-
June 13, 2023 at 10:35 am
Rob
Forum ModeratorAs a guess you've got a pressure boundary and buoyancy?Â
You need to check the command. The exact form of the TUI commands (the yes/no bits) is very dependent on what other models are active. So, the turbulence model may add an extra yes/no and some number inputs.Â
In the TUI the command /define/something can be run from any level of the TUI menu. define/something will only work if run from root (top level).Â
-
June 13, 2023 at 11:26 am
Ramesh Chandra Mishra
SubscriberNo buoyancy. I have got velocity inlet and pressure outlet. In velocity inlet, I have specified UDF.
-
June 13, 2023 at 1:04 pm
Rob
Forum ModeratorLooking at the image it's not hooked up correctly, so you need to check the command. I'd also be looking at the HPC result to understand how you got the flow pattern you're seeing.Â
-
June 13, 2023 at 1:20 pm
Ramesh Chandra Mishra
SubscriberHi Rob
Will it be okay if I send my case file and you could just verify if the command is right. I have struggling with this for quite a long time. I have tried but can't figure out what is wrong.
-
June 13, 2023 at 1:55 pm
Rob
Forum ModeratorRun the journal line by line locally. Does it work? Does Fluent think it's looking for the local path for libudf, or the full path? Have you recompiled on the HPC noting that Linux/Windows have different libraries, as do each release of Fluent.Â
We're not able to review files, it's one of the rules we need to comply with for Export Control.Â
-
June 13, 2023 at 2:01 pm
-
June 13, 2023 at 2:04 pm
Rob
Forum ModeratorYes, if the inlet is set as zero that's the velocity that Fluent will use.Â
-
June 13, 2023 at 2:06 pm
Ramesh Chandra Mishra
SubscriberOkay. But I cannot run my simulations with UDF loaded in case file. It gives errors. I have tried that.
Can you tell me the correct way?
Â
-
June 13, 2023 at 2:08 pm
Ramesh Chandra Mishra
SubscriberPS: My velocity profile is specified in the UDF.
-
June 13, 2023 at 2:37 pm
Rob
Forum ModeratorIf you don't load the UDF then you won't get the same velocity profile and so aren't modelling the same conditions.Â
What errors are you getting?Â
-
June 14, 2023 at 4:20 am
Ramesh Chandra Mishra
SubscriberHi Rob.
I got the correct results. The problem was with the inlet boundary conditions . Like you said, velocity magnitude zero will give the zero results. I corrected it.
Thanks.
-
- The topic ‘Difference in HPC results and PC results.’ is closed to new replies.
-
3487
-
1057
-
1051
-
945
-
917
© 2025 Copyright ANSYS, Inc. All rights reserved.