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

cc: command not found fluent, linux

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 11, 2020, 01:56
Default cc: command not found fluent, linux
  #1
New Member
 
Ajinkya S
Join Date: Feb 2020
Posts: 4
Rep Power: 6
Aj_45 is on a distinguished road
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
Aj_45 is offline   Reply With Quote

Old   September 16, 2020, 08:38
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 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
AlexanderZ is offline   Reply With Quote

Reply

Tags
fluent - udf


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
looking for a smart interface matlab fluent chary FLUENT 24 June 18, 2021 09:07
problem during mpi in server: expected Scalar, found on line 0 the word 'nan' muth OpenFOAM Running, Solving & CFD 3 August 27, 2018 04:18
Gmsh installation on terminal help spitfire Main CFD Forum 4 July 27, 2017 15:11
[Other] Compiling hacFoam (Ubuntu 10.04)(OF2.0.0)(LAMMPS13Jul2010)) Henrik_E OpenFOAM Installation 3 September 29, 2016 16:16
critical error during installation of openfoam Fabio88 OpenFOAM Installation 21 June 2, 2010 03:01


All times are GMT -4. The time now is 09:37.