CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT

UDF for mean residence time

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By AlexanderZ

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 19, 2021, 17:25
Question UDF for mean residence time
  #1
New Member
 
Join Date: Jan 2021
Location: Italy, Milano
Posts: 3
Rep Power: 5
JA_95 is on a distinguished road
Hi everyone, I am new to this forum and quite unexperienced with Fluent as well. I know that this question has already been answered but I couldn't really solve my issues.

From a RTD analysis I know that in a tubular reactor there are dead zones. I would like to take a contour of residence time inside the reactor in order to know where the dead zones are, so I would need to create a uds for mean residence time.. I already found a code here but when I run the simulation the uds is always equal to zero. Anyone can help? Thank you very much in advance
JA_95 is offline   Reply With Quote

Old   January 20, 2021, 01:54
Default
  #2
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34
AlexanderZ will become famous soon enoughAlexanderZ will become famous soon enough
you don't need UDF to get mean values
there is an option "data sampling for time statistics", you may use it
solution -> run calculation -> options

but if you are telling us, that your UDF doesn't work, you should put it here with detailed description of your model and problems, with console output and so on
JA_95 likes this.
__________________
best regards


******************************
press LIKE if this message was helpful
AlexanderZ is offline   Reply With Quote

Old   January 20, 2021, 04:35
Default
  #3
New Member
 
Join Date: Jan 2021
Location: Italy, Milano
Posts: 3
Rep Power: 5
JA_95 is on a distinguished road
Alexander, thank you very much for your answer, but in the sampling options I can't see the residence time, I think that I have to compile a UDF function.
I post here what I previously found

/*========================*/
#include "udf.h"
/*
* UDF to compute fluid residence time
*
* This UDF requires at least 1 UDS to be defined
* At inlet, define UDS (value) = 0
* UDS will have units of time and represent approximate residence time
* of fluid in domain
*
* Diffusivity of scalar should be small to reduce diffusion i.e. 1E-5
* However, for turbulent flow with recirculating regions, it is more appropriate
* to hook the function rtd_diff to the UDS diffusivity in the
* materials panel
*/


DEFINE_SOURCE(rt_source,c,t,dS,eqn)
{
real source = C_R(c,t);
dS[eqn] = 0.0;
return source;
}

/*
* in the function below, the turbulent schmidt number has been
* set to 1.0 in accordance with the references mentioned above
* and the fluid molecular diffusivity has been set to 1.0e-5 m2/s
*
* these values can be changed on an as-needed basis, for instance in
* Airpak mean age of air calculations, a value of 2.88e-5 is used



* for the molecular diffusivity and a value of 0.7 is used for the
* turbulent Schmidt number
*/
DEFINE_DIFFUSIVITY(rtd_diff, c, t, i)
{
return C_R(c,t)*1.0e-09+C_MU_EFF(c,t)/1.0;
}

What I do is:
1) Compile the udf function
2) setting a UDS
3)setting the boundaries condition (0 at the inlet)

Then I run a transient simulation but the residence time is always equal to zero and never increases.
I hope to have explained my problem properly, thank you
JA_95 is offline   Reply With Quote

Old   January 21, 2021, 01:26
Default
  #4
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34
AlexanderZ will become famous soon enoughAlexanderZ will become famous soon enough
did you apply UDS source in Fluent GUI to the fluid zone?
go to zone -> select fluid -> sources -> uds-0 -> select your UDF source
__________________
best regards


******************************
press LIKE if this message was helpful
AlexanderZ is offline   Reply With Quote

Old   November 18, 2023, 02:59
Default
  #5
New Member
 
anonymous96
Join Date: Nov 2022
Posts: 17
Rep Power: 4
anonymous96_ is on a distinguished road
Hello Alexander
I have a problem after exporting UDF output to a text file. I am running simulation on a cluster and it runs well. I basically have 2 issues:
a)The value of UDS appears to be zero in the console for all the iterations. UDS is for the concentration of species which are emitted from a cell zone. Please note that the source is specifies in GUI and not the UDF. A snippet of my code is as follows:

DEFINE_ON_DEMAND(pch_udf)
{
FILE* fp_pch;
fp_pch = fopen("PCH.txt", "a");
Thread *t,*to, ;
face_t f;
cell_t co;
Domain *d;
d = Get_Domain(1);

real A[ND_ND];
real x[ND_ND];

real PCH_turb_roof=0;




//loop for turbulent component of PCH(Roof)
thread_loop_f(t, d)
{
begin_f_loop(f,t)
{
F_CENTROID(x, f, t);
if (x[0] >= 108 && x[0] <= 126 && x[1] == 18 && x[2] >= 90 && x[2] <= 126 )
{
F_AREA(A,f,t);
co = F_C0(f, t);
to = THREAD_T0(t);
real integrand;
real conc_grad_roof;
real mu_t_roof = C_MU_T(co,to);
C_UDSI(co,to,0)= C_YI(co,to,0) * RHO_1;
conc_grad_roof=(C_UDSI_G(co,to,0)[1]);
integrand = (mu_t_roof /0.7)*conc_grad_roof;
PCH_turb_roof -= integrand*NV_MAG(A);
}
}

end_f_loop(f,t)
}
fprintf(fp_pch, "PCH_turb_roof %g\n",PCH_turb_roof);
}

b) After complete simulations, the parameters defined under execute on demand are 0 for some iterations and non zero for some in the output text file. but it should be non-zero after every iteration as far as I understand. Please let me know if I am doing something wrong or interpreting them wrong. A snippet of the output file is as follows:

PCH_turb_roof 0
PCH_turb_side1 0
PCH_turb_side2 0
PCH_mean_roof 0
PCH_mean_side1 0
PCH_mean_side2 0
PCH_turb_roof 0
PCH_turb_side1 0
PCH_turb_side2 0
PCH_mean_roof 0
PCH_mean_side1 0
PCH_mean_side2 0
PCH_turb_roof 0
PCH_turb_side1 0
PCH_turb_side2 0
PCH_mean_roof 0
PCH_mean_side1 0
PCH_mean_side2 0
PCH_turb_roof 0
PCH_turb_side1 0
PCH_turb_side2 0
PCH_mean_roof 0
PCH_mean_side1 -4.6371
PCH_mean_side2 4.36109
PCH_turb_roof 0
PCH_turb_side1 0
PCH_turb_side2 0
PCH_mean_roof 0
PCH_mean_side1 0
PCH_mean_side2 0
PCH_turb_roof 0
PCH_turb_side1 0
PCH_turb_side2 0
PCH_mean_roof 0
PCH_mean_side1 0
PCH_mean_side2 0
PCH_turb_roof 0
PCH_turb_side1 0
PCH_turb_side2 0
PCH_mean_roof 0
PCH_mean_side1 0
PCH_mean_side2 -4.1951
anonymous96_ is offline   Reply With Quote

Old   November 19, 2023, 21:53
Default
  #6
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34
AlexanderZ will become famous soon enoughAlexanderZ will become famous soon enough
first of all
compile your code and fix errors
__________________
best regards


******************************
press LIKE if this message was helpful
AlexanderZ is offline   Reply With Quote

Old   November 19, 2023, 23:46
Default
  #7
New Member
 
anonymous96
Join Date: Nov 2022
Posts: 17
Rep Power: 4
anonymous96_ is on a distinguished road
Hello Alexander
Thankyou for the response. Code is compiled successfully and runs without any error. The only problem is it gives zero values for the parameters.
However I fixed it partially using PRF_GRSUM1 which was suggested by you in some other thread I came across and it works and gives desired output for other parameters.
But the only problem is the piece of code mentioned above. I have come to realize that the problem is with C_UDSI_G term because I am getting 0 for only those parameters which include C_UDSI_G. I am attaching the code again for your reference:

Code:
#include "udf.h"
#include "sg.h"
#include "mem.h"
#include "math.h"
#define RHO_1 1.29

DEFINE_ON_DEMAND(pch_udf)
{
    FILE* fp_pch;
	fp_pch = fopen("PCH.txt", "a");
	Thread *t,*to;
	face_t f;
	cell_t co;
	Domain *d;
	d = Get_Domain(1);   
											
	real A[ND_ND]; 
	real x[ND_ND];
               
    real PCH_turb_roof=0;
thread_loop_f(t, d)
	{
	    begin_f_loop(f,t)
		    {
		        F_CENTROID(x, f, t);
				if (x[0] >= 108  && x[0] <=  126 &&  x[1] == 18 && x[2] >= 90  && x[2] <= 126 )
				{
                    F_AREA(A,f,t);
					co = F_C0(f, t);              
					to = THREAD_T0(t);      
					real integrand;
					real conc_grad_roof;
					real mu_t_roof = C_MU_T(co,to);        
					C_UDSI(co,to,0)= C_YI(co,to,0) * RHO_1;   
					conc_grad_roof=(C_UDSI_G(co,to,0)[1]);       

					integrand = (mu_t_roof /0.7)*conc_grad_roof;     
					PCH_turb_roof -= integrand*NV_MAG(A);            
                }
            }
                          
        end_f_loop(f,t)
	}
}
anonymous96_ is offline   Reply With Quote

Old   November 20, 2023, 00:24
Default
  #8
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34
AlexanderZ will become famous soon enoughAlexanderZ will become famous soon enough
Code:
..\..\src\debug_request_1.c(11) : error C2275: 'Thread' : illegal use of this type as an expression
        ...\src\storage\mem.h(279) : see declaration of 'Thread'
..\..\src\debug_request_1.c(11) : error C2065: 't' : undeclared identifier
..\..\src\debug_request_1.c(11) : error C2065: 'to' : undeclared identifier
..\..\src\debug_request_1.c(11) : error C2100: illegal indirection
..\..\src\debug_request_1.c(12) : error C2275: 'face_t' : illegal use of this type as an expression
        ...\src\storage\mem_grid.h(119) : see declaration of 'face_t'
..\..\src\debug_request_1.c(12) : error C2146: syntax error : missing ';' before identifier 'f'
..\..\src\debug_request_1.c(12) : error C2065: 'f' : undeclared identifier
..\..\src\debug_request_1.c(13) : error C2275: 'cell_t' : illegal use of this type as an expression
        ...\src\storage\mem_grid.h(124) : see declaration of 'cell_t'
..\..\src\debug_request_1.c(13) : error C2146: syntax error : missing ';' before identifier 'co'
..\..\src\debug_request_1.c(13) : error C2065: 'co' : undeclared identifier
..\..\src\debug_request_1.c(14) : error C2275: 'Domain' : illegal use of this type as an expression
        ...\src\storage\mem.h(277) : see declaration of 'Domain'
..\..\src\debug_request_1.c(14) : error C2065: 'd' : undeclared identifier
..\..\src\debug_request_1.c(15) : error C2065: 'd' : undeclared identifier
..\..\src\debug_request_1.c(15) : warning C4047: '=' : 'int' differs in levels of indirection from 'Domain *'
..\..\src\debug_request_1.c(17) : error C2275: 'real' : illegal use of this type as an expression
        ...\src\main\global.h(174) : see declaration of 'real'
..\..\src\debug_request_1.c(17) : error C2146: syntax error : missing ';' before identifier 'A'
..\..\src\debug_request_1.c(17) : error C2065: 'A' : undeclared identifier
..\..\src\debug_request_1.c(17) : error C2109: subscript requires array or pointer type
..\..\src\debug_request_1.c(18) : error C2275: 'real' : illegal use of this type as an expression
        ...\src\main\global.h(174) : see declaration of 'real'
..\..\src\debug_request_1.c(18) : error C2146: syntax error : missing ';' before identifier 'x'
..\..\src\debug_request_1.c(18) : error C2065: 'x' : undeclared identifier
..\..\src\debug_request_1.c(18) : error C2109: subscript requires array or pointer type
..\..\src\debug_request_1.c(20) : error C2275: 'real' : illegal use of this type as an expression
        ...\src\main\global.h(174) : see declaration of 'real'
..\..\src\debug_request_1.c(20) : error C2146: syntax error : missing ';' before identifier 'PCH_turb_roof'
..\..\src\debug_request_1.c(20) : error C2065: 'PCH_turb_roof' : undeclared identifier
..\..\src\debug_request_1.c(21) : error C2065: 't' : undeclared identifier
..\..\src\debug_request_1.c(21) : error C2065: 'd' : undeclared identifier
..\..\src\debug_request_1.c(21) : error C2223: left of '->f' must point to struct/union
..\..\src\debug_request_1.c(21) : error C2065: 't' : undeclared identifier
..\..\src\debug_request_1.c(21) : warning C4047: '!=' : 'void *' differs in levels of indirection from 'int'
..\..\src\debug_request_1.c(21) : error C2065: 't' : undeclared identifier
..\..\src\debug_request_1.c(21) : error C2065: 't' : undeclared identifier
..\..\src\debug_request_1.c(21) : error C2223: left of '->next' must point to struct/union
..\..\src\debug_request_1.c(23) : error C2065: 't' : undeclared identifier
..\..\src\debug_request_1.c(23) : error C2223: left of '->nelements' must point to struct/union
..\..\src\debug_request_1.c(23) : error C2065: 'f' : undeclared identifier
..\..\src\debug_request_1.c(23) : error C2065: 'f' : undeclared identifier
..\..\src\debug_request_1.c(23) : error C2065: 'f' : undeclared identifier
..\..\src\debug_request_1.c(25) : error C2065: 'x' : undeclared identifier
..\..\src\debug_request_1.c(25) : error C2109: subscript requires array or pointer type
..\..\src\debug_request_1.c(25) : error C2065: 't' : undeclared identifier
..\..\src\debug_request_1.c(25) : error C2223: left of '->storage' must point to struct/union
..\..\src\debug_request_1.c(25) : error C2065: 'f' : undeclared identifier
..\..\src\debug_request_1.c(25) : error C2065: 'x' : undeclared identifier
..\..\src\debug_request_1.c(25) : error C2109: subscript requires array or pointer type
..\..\src\debug_request_1.c(25) : error C2065: 't' : undeclared identifier
..\..\src\debug_request_1.c(25) : error C2223: left of '->storage' must point to struct/union
..\..\src\debug_request_1.c(25) : error C2065: 'f' : undeclared identifier
..\..\src\debug_request_1.c(25) : error C2065: 'x' : undeclared identifier
..\..\src\debug_request_1.c(25) : error C2109: subscript requires array or pointer type
..\..\src\debug_request_1.c(25) : error C2065: 't' : undeclared identifier
..\..\src\debug_request_1.c(25) : error C2223: left of '->storage' must point to struct/union
..\..\src\debug_request_1.c(25) : error C2065: 'f' : undeclared identifier
..\..\src\debug_request_1.c(26) : error C2065: 'x' : undeclared identifier
..\..\src\debug_request_1.c(26) : error C2109: subscript requires array or pointer type
..\..\src\debug_request_1.c(26) : error C2065: 'x' : undeclared identifier
..\..\src\debug_request_1.c(26) : error C2109: subscript requires array or pointer type
..\..\src\debug_request_1.c(26) : error C2065: 'x' : undeclared identifier
..\..\src\debug_request_1.c(26) : error C2109: subscript requires array or pointer type
..\..\src\debug_request_1.c(26) : error C2065: 'x' : undeclared identifier
..\..\src\debug_request_1.c(26) : error C2109: subscript requires array or pointer type
..\..\src\debug_request_1.c(26) : error C2065: 'x' : undeclared identifier
..\..\src\debug_request_1.c(26) : error C2109: subscript requires array or pointer type
..\..\src\debug_request_1.c(28) : error C2065: 'A' : undeclared identifier
..\..\src\debug_request_1.c(28) : error C2109: subscript requires array or pointer type
..\..\src\debug_request_1.c(28) : error C2065: 't' : undeclared identifier
..\..\src\debug_request_1.c(28) : error C2223: left of '->storage' must point to struct/union
..\..\src\debug_request_1.c(28) : error C2065: 'f' : undeclared identifier
..\..\src\debug_request_1.c(28) : error C2065: 'A' : undeclared identifier
..\..\src\debug_request_1.c(28) : error C2109: subscript requires array or pointer type
..\..\src\debug_request_1.c(28) : error C2065: 't' : undeclared identifier
..\..\src\debug_request_1.c(28) : error C2223: left of '->storage' must point to struct/union
..\..\src\debug_request_1.c(28) : error C2065: 'f' : undeclared identifier
..\..\src\debug_request_1.c(28) : error C2065: 'A' : undeclared identifier
..\..\src\debug_request_1.c(28) : error C2109: subscript requires array or pointer type
..\..\src\debug_request_1.c(28) : error C2065: 't' : undeclared identifier
..\..\src\debug_request_1.c(28) : error C2223: left of '->storage' must point to struct/union
..\..\src\debug_request_1.c(28) : error C2065: 'f' : undeclared identifier
..\..\src\debug_request_1.c(29) : error C2065: 'co' : undeclared identifier
..\..\src\debug_request_1.c(29) : error C2065: 't' : undeclared identifier
..\..\src\debug_request_1.c(29) : error C2223: left of '->storage' must point to struct/union
..\..\src\debug_request_1.c(29) : error C2065: 'f' : undeclared identifier
..\..\src\debug_request_1.c(30) : error C2065: 'to' : undeclared identifier
..\..\src\debug_request_1.c(30) : error C2065: 't' : undeclared identifier
..\..\src\debug_request_1.c(30) : error C2223: left of '->t0' must point to struct/union
..\..\src\debug_request_1.c(31) : error C2275: 'real' : illegal use of this type as an expression
        ...\src\main\global.h(174) : see declaration of 'real'
..\..\src\debug_request_1.c(31) : error C2146: syntax error : missing ';' before identifier 'integrand'
..\..\src\debug_request_1.c(31) : error C2065: 'integrand' : undeclared identifier
..\..\src\debug_request_1.c(32) : error C2275: 'real' : illegal use of this type as an expression
        ...\src\main\global.h(174) : see declaration of 'real'
..\..\src\debug_request_1.c(32) : error C2146: syntax error : missing ';' before identifier 'conc_grad_roof'
..\..\src\debug_request_1.c(32) : error C2065: 'conc_grad_roof' : undeclared identifier
..\..\src\debug_request_1.c(33) : error C2275: 'real' : illegal use of this type as an expression
        ...\src\main\global.h(174) : see declaration of 'real'
..\..\src\debug_request_1.c(33) : error C2146: syntax error : missing ';' before identifier 'mu_t_roof'
..\..\src\debug_request_1.c(33) : error C2065: 'mu_t_roof' : undeclared identifier
..\..\src\debug_request_1.c(33) : error C2065: 'to' : undeclared identifier
..\..\src\debug_request_1.c(33) : error C2223: left of '->storage' must point to struct/union
..\..\src\debug_request_1.c(33) : error C2065: 'co' : undeclared identifier
..\..\src\debug_request_1.c(33) : fatal error C1903: unable to recover from previous error(s); stopping compilation
__________________
best regards


******************************
press LIKE if this message was helpful
AlexanderZ is offline   Reply With Quote

Old   November 20, 2023, 00:29
Default
  #9
New Member
 
anonymous96
Join Date: Nov 2022
Posts: 17
Rep Power: 4
anonymous96_ is on a distinguished road
It is surprising because I am working on a cluster and the code compiles successfully without any error and even runs properly. I have tried the same on GUI and it runs properly even there. Below is the output given by cluster.
> /define/user-defined/execute-on-demand "ach_udf::libudf"top_area 488.745640
ACHt_mean_out 774.856324
ACHt_mean_in -1566.653054
ACHs1_mean_out 594.815464
ACHs1_mean_in -1454.835132
side1_area 372.217786
ACHs2_mean_out 557.829449
ACHs2_mean_in -512.963930
side2_area 235.807022
ACHt_turb_out 1174.266788
ACHt_turb_in -1174.266788
ACHs1_turb_out -1315.378930
ACHs1_turb_in 1315.378930
ACHs2_turb_out 531.245672
ACHs2_turb_in -531.245672


> /define/user-defined/execute-on-demand "pch_udf::libudf"PCH_turb_roof 0.000000
PCH_turb_side1 0.000000
PCH_turb_side2 0.000000
PCH_mean_roof -231.858120
PCH_mean_side1 -251.835431
PCH_mean_side2 13.137737
anonymous96_ is offline   Reply With Quote

Old   November 20, 2023, 00:36
Default
  #10
New Member
 
anonymous96
Join Date: Nov 2022
Posts: 17
Rep Power: 4
anonymous96_ is on a distinguished road
Here is the messages on compilation in HPC:
Code:
done
# linking to ../../src/codasc_udf.c in lnamd64/3ddp_host
# linking to ../../src/udf.h in lnamd64/3ddp_host

# building library in lnamd64/3ddp_host
make[1]: Entering directory `/scratch/21ef91r04/Trial2/libudf/lnamd64/3ddp_host'
# Generating udf_names.c because of codasc_udf.c
make[2]: Entering directory `/scratch/21ef91r04/Trial2/libudf/lnamd64/3ddp_host'
make libudf.so "CFLAGS=-D_lnamd64 -D_GNU_SOURCE -fpic -shared -std=c99 -Wall -O -DPTR_RESTRICT=   " "LDFLAGS=-shared -lm"
make[3]: Entering directory `/scratch/21ef91r04/Trial2/libudf/lnamd64/3ddp_host'
# Compiling udf_names.o because of udf_names.c
cc -D_lnamd64 -D_GNU_SOURCE -fpic -shared -std=c99 -Wall -O -DPTR_RESTRICT=    -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/`expr "\`pwd\`" : '.*/\(.*\)/[23].*'`/`basename "\`pwd\`"` -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/src/main -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/src/addon-wrapper -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/src/io -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/src/species -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/src/pbns -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/src/numerics -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/src/sphysics -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/src/storage -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/src/mphase -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/src/bc -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/src/models -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/src/material -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/src/amg -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/src/util -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/src/mesh -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/src/udf -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/src/ht -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/src/dx -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/src/turbulence -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/src/acoustics -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/src/parallel -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/src/etc -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/src/ue -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/src/dpm -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/src/dbns -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/cortex/src -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/client/src -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/tgrid/src -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/multiport/src -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/multiport/mpi_wrapper/include -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/multiport/mpi_wrapper/src -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/include -I. -c udf_names.c
# Compiling codasc_udf.o because of codasc_udf.c
cc -D_lnamd64 -D_GNU_SOURCE -fpic -shared -std=c99 -Wall -O -DPTR_RESTRICT=     -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/`expr "\`pwd\`" : '.*/\(.*\)/[23].*'`/`basename "\`pwd\`"` -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/src/main -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/src/addon-wrapper -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/src/io -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/src/species -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/src/pbns -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/src/numerics -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/src/sphysics -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/src/storage -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/src/mphase -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/src/bc -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/src/models -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/src/material -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/src/amg -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/src/util -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/src/mesh -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/src/udf -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/src/ht -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/src/dx -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/src/turbulence -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/src/acoustics -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/src/parallel -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/src/etc -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/src/ue -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/src/dpm -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/src/dbns -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/cortex/src -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/client/src -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/tgrid/src -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/multiport/src -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/multiport/mpi_wrapper/include -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/multiport/mpi_wrapper/src -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/include -I. -c codasc_udf.c
# Linking libudf.so because of udf_names.c udf_names.o codasc_udf.o
cc -shared -lm udf_names.o codasc_udf.o  -o libudf.so
make[3]: Leaving directory `/scratch/21ef91r04/Trial2/libudf/lnamd64/3ddp_host'
make[2]: Leaving directory `/scratch/21ef91r04/Trial2/libudf/lnamd64/3ddp_host'
make[1]: Leaving directory `/scratch/21ef91r04/Trial2/libudf/lnamd64/3ddp_host'
# linking to ../../src/codasc_udf.c in lnamd64/3ddp_node
# linking to ../../src/udf.h in lnamd64/3ddp_node

# building library in lnamd64/3ddp_node
make[1]: Entering directory `/scratch/21ef91r04/Trial2/libudf/lnamd64/3ddp_node'
# Generating udf_names.c because of codasc_udf.c
make[2]: Entering directory `/scratch/21ef91r04/Trial2/libudf/lnamd64/3ddp_node'
make libudf.so "CFLAGS=-D_lnamd64 -D_GNU_SOURCE -fpic -shared -std=c99 -Wall -O -DPTR_RESTRICT=   " "LDFLAGS=-shared -lm"
make[3]: Entering directory `/scratch/21ef91r04/Trial2/libudf/lnamd64/3ddp_node'
# Compiling udf_names.o because of udf_names.c
cc -D_lnamd64 -D_GNU_SOURCE -fpic -shared -std=c99 -Wall -O -DPTR_RESTRICT=    -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/`expr "\`pwd\`" : '.*/\(.*\)/[23].*'`/`basename "\`pwd\`"` -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/src/main -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/src/addon-wrapper -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/src/io -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/src/species -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/src/pbns -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/src/numerics -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/src/sphysics -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/src/storage -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/src/mphase -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/src/bc -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/src/models -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/src/material -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/src/amg -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/src/util -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/src/mesh -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/src/udf -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/src/ht -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/src/dx -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/src/turbulence -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/src/acoustics -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/src/parallel -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/src/etc -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/src/ue -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/src/dpm -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/src/dbns -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/cortex/src -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/client/src -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/tgrid/src -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/multiport/src -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/multiport/mpi_wrapper/include -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/multiport/mpi_wrapper/src -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/include -I. -c udf_names.c
# Compiling codasc_udf.o because of codasc_udf.c
cc -D_lnamd64 -D_GNU_SOURCE -fpic -shared -std=c99 -Wall -O -DPTR_RESTRICT=     -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/`expr "\`pwd\`" : '.*/\(.*\)/[23].*'`/`basename "\`pwd\`"` -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/src/main -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/src/addon-wrapper -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/src/io -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/src/species -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/src/pbns -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/src/numerics -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/src/sphysics -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/src/storage -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/src/mphase -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/src/bc -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/src/models -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/src/material -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/src/amg -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/src/util -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/src/mesh -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/src/udf -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/src/ht -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/src/dx -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/src/turbulence -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/src/acoustics -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/src/parallel -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/src/etc -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/src/ue -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/src/dpm -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/src/dbns -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/cortex/src -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/client/src -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/tgrid/src -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/multiport/src -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/multiport/mpi_wrapper/include -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/fluent21.2.0/multiport/mpi_wrapper/src -I/home/apps/ANSYS2021R2/installdir/ansys_inc/v212/fluent/include -I. -c codasc_udf.c
# Linking libudf.so because of udf_names.c udf_names.o codasc_udf.o
cc -shared -lm udf_names.o codasc_udf.o  -o libudf.so
make[3]: Leaving directory `/scratch/21ef91r04/Trial2/libudf/lnamd64/3ddp_node'
make[2]: Leaving directory `/scratch/21ef91r04/Trial2/libudf/lnamd64/3ddp_node'
make[1]: Leaving directory `/scratch/21ef91r04/Trial2/libudf/lnamd64/3ddp_node'
anonymous96_ is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[General] Extracting ParaView Data into Python Arrays Jeffzda ParaView 30 November 6, 2023 22:00
LES, Courant Number, Crash, Sudden Alhasan OpenFOAM Running, Solving & CFD 5 November 22, 2019 03:05
laplacianFoam with source term Herwig OpenFOAM Running, Solving & CFD 17 November 19, 2019 14:47
dynamic Mesh is faster than MRF???? sharonyue OpenFOAM Running, Solving & CFD 14 August 26, 2013 08:47
IcoFoam parallel woes msrinath80 OpenFOAM Running, Solving & CFD 9 July 22, 2007 03:58


All times are GMT -4. The time now is 08:30.