|
[Sponsors] |
September 11, 2020, 02:56 |
cc: command not found fluent, linux
|
#1 |
New Member
Ajinkya S
Join Date: Feb 2020
Posts: 4
Rep Power: 6 |
Hi,
I am trying to compile following udf for fluent 15.0 on linux system Code:
#include "udf.h" real velx = 0.0; DEFINE_CG_MOTION(box, dt, vel, omega, time, dtime) { NV_S(vel, =, 0.0); NV_S(omega, =, 0.0); velx = 0.05 * sin(3.1415927 * time / 10); vel[0] = velx; } But I get the following error: # Compiling grid_motion.o because of grid_motion.c cc -D_lnamd64 -D_GNU_SOURCE -fpic -shared -ansi -Wall -O -DPTR_RESTRICT= -I/export/apps/ansys_inc/v150/fluent/fluent15.0.0/`expr "\`pwd\`" : '.*/\(.*\)/[23].*'`/`basename "\`pwd\`"` -I/export/apps/ansys_inc/v150/fluent/fluent15.0.0/src -I/export/apps/ansys_inc/v150/fluent/fluent15.0.0/cortex/src -I/export/apps/ansys_inc/v150/fluent/fluent15.0.0/client/src -I/export/apps/ansys_inc/v150/fluent/fluent15.0.0/tgrid/src -I/export/apps/ansys_inc/v150/fluent/fluent15.0.0/multiport/src -I/export/apps/ansys_inc/v150/fluent/fluent15.0.0/multiport/mpi_wrapper/include -I/export/apps/ansys_inc/v150/fluent/fluent15.0.0/multiport/mpi_wrapper/src -I. -c grid_motion.c /bin/sh: cc: command not found make[3]: *** [grid_motion.o] Error 127 make[3]: Target `libudf.so' not remade because of errors. make[3]: Leaving directory `/home/ajinkya/aj/mesh_motion/libudf/lnamd64/2ddp' make[2]: *** [lnamd64] Error 2 make[2]: Leaving directory `/home/ajinkya/aj/mesh_motion/libudf/lnamd64/2ddp' make[1]: *** [default] Error 2 make[1]: Leaving directory `/home/ajinkya/aj/mesh_motion/libudf/lnamd64/2ddp' A similar thread for cc: command not found, on the forum suggest installing the gcc compiler but I guess I have it installed already. which gcc returns: /usr/local/bin/gcc which cc returns: no cc in (...) I am compiling the udf in gui using (Define-User defined-Functions-Compiled) and then adding the source file followed by clicking the 'build' option. What could be the problem here? Thanks, Ajinkya |
|
September 16, 2020, 09:38 |
|
#2 |
Senior Member
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34 |
you may try to compile from terminal, but you should create make file first.
For more information about that check Ansys Fluent Customization manual
__________________
best regards ****************************** press LIKE if this message was helpful |
|
Tags |
fluent - udf |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
looking for a smart interface matlab fluent | chary | FLUENT | 24 | June 18, 2021 10:07 |
problem during mpi in server: expected Scalar, found on line 0 the word 'nan' | muth | OpenFOAM Running, Solving & CFD | 3 | August 27, 2018 05:18 |
Gmsh installation on terminal help | spitfire | Main CFD Forum | 4 | July 27, 2017 16:11 |
[Other] Compiling hacFoam (Ubuntu 10.04)(OF2.0.0)(LAMMPS13Jul2010)) | Henrik_E | OpenFOAM Installation | 3 | September 29, 2016 17:16 |
critical error during installation of openfoam | Fabio88 | OpenFOAM Installation | 21 | June 2, 2010 04:01 |