|
[Sponsors] |
April 23, 2020, 16:47 |
Flux of UDS
|
#1 |
Member
Pierce
Join Date: May 2019
Posts: 40
Rep Power: 7 |
I have created a UDS which runs nicely, however I want to specify the flux at the walls of the aircraft wing to be the same as pressure flux. I used the following code:
DEFINE_PROFILE(UDSP, t, i) { real x[ND_ND]; /* this will hold the position vector */ real y, h; face_t f; real A[ND_ND]; begin_f_loop(f,t) { F_CENTROID(x, f, t); F_AREA(A,f,t); F_PROFILE(f, t, i) = A[0]*C_P_G(f,t)[0]+A[1]*C_P_G(f,t)[1]+A[2]*C_P_G(f,t)[2]; } end_f_loop(f, t) } however I keep getting an error. Any help would be appreciated |
|
April 23, 2020, 16:56 |
Error
|
#2 |
Senior Member
|
What error do you get? If it's related to segmentation violation, then that's because pressure gradient is unavailable. You need to issue following command
sol set exp And then answer yes to the question regarding keeping the memory from being freed.
__________________
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. |
|
April 23, 2020, 18:44 |
|
#3 | |
Member
Pierce
Join Date: May 2019
Posts: 40
Rep Power: 7 |
Quote:
As soon as I choose it as the flux BC and select okay I receive the following error Node 0: Process 28373: Received signal SIGSEGV. |
||
April 24, 2020, 04:44 |
Segmentation Violation
|
#4 |
Senior Member
|
SIGSEGV implies segmentation violation. Most likely, pressure gradient is unavailable. The solution was mentioned in the previous post.
__________________
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. |
|
April 24, 2020, 15:56 |
|
#5 |
Member
Pierce
Join Date: May 2019
Posts: 40
Rep Power: 7 |
I appreciate the suggestion but still no success! The same error persists
|
|
April 24, 2020, 16:32 |
Gradient
|
#6 |
Senior Member
|
I just noticed the bug. You are using C_P_G with f as its argument. That won't work. You have to use it like as follows
cell_t c; Thread *ct; ct = THREAD_T0(t); And within the loop c = F_C0(f, t); C_P_G(c, ct)[0];
__________________
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. |
|
April 30, 2020, 02:25 |
|
#7 |
Member
Chris
Join Date: Dec 2018
Posts: 36
Rep Power: 7 |
Watch your task manager when you do it, do you run out of RAM?
|
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Radiation in semi-transparent media with surface-to-surface model? | mpeppels | CFX | 11 | August 22, 2019 08:30 |
UDS Flux Function Choice | Yang Chung | FLUENT | 1 | November 17, 2015 02:14 |
setting UDS Flux | Andrew Garrard | FLUENT | 9 | February 10, 2015 14:26 |
UDS Flux Function Problem | sunbird04 | FLUENT | 6 | April 28, 2014 03:58 |
Help with UDS FLUX | Andrew Garrard | FLUENT | 2 | February 14, 2005 06:47 |