C runtime library internal header file Error
hello
i tried to build a udf library throught:define-user defined-functions-compiled but i got this error when i tried to build: fatal error C1083: Cannot open include file: 'stdio.h': No such file or directory. i copied stdio.h from "D:\Program Files\Microsoft Visual Studio 9.0\VC\crt\src" to "E:\Fluent.Inc\fluent6.3.21\src" then i built it again and it gave me this error: fatal error C1083: Cannot open include file: 'crtdefs.h': No such file or directory i did the same and when i tried to build it again i got this one: E:\Fluent.Inc\fluent6.3.21\src\crtdefs.h(36) : fatal error C1189: #error : ERROR: Use of C runtime library internal header file. any ideas what should i do to get rid of this error? thanks |
hi i m also getting the same reply kindly let me knw if you have solved this problem..
|
Same Error
If you people have solved the error kindly share how to did this?
|
|
Same Error
I can only see the following page as shown in the link below with no information.
https://imgur.com/a/zdULh76 |
|
Same Error
Sorry but this specific error is not mentioned on this link.
|
Quote:
best regards |
Similar error
hi guys,
i have a similar error and couldn't fix it with the steps mentioned before. I use Fluent 19 and VS 2015. i opened fluent via the prompt command and set the working directory to the case and data files. When i try to compile the udf i get the following error: Copied D:\Christoph\Test 40 udf\zahn_files\dp0\FFF\Fluent/D:\Christoph\Test 40 udf\zahn_files\dp0\FFF\Fluent\Density_Viscosity_ud f.c to libudf1\src Creating user_nt.udf file for 3d_host ... (system "copy "C:\Programme\ansys inc\v190\fluent"\fluent19.0.0\src\udf\makefile_nt. udf "libudf1\win64\3d_host\makefile" ") 1 Datei(en) kopiert. (chdir "libudf1")(chdir "win64\3d_host")# Generating ud_io1.h Density_Viscosity_udf.c C:\Programme\ansys inc\v190\fluent\fluent19.0.0\src\main\global.h(9): fatal error C1083: Datei (Include) kann nicht ge”ffnet werden: "stdio.h": No such file or directory Creating user_nt.udf file for 3d_node ... (system "copy "C:\Programme\ansys inc\v190\fluent"\fluent19.0.0\src\udf\makefile_nt. udf "libudf1\win64\3d_node\makefile" ") 1 Datei(en) kopiert. (chdir "libudf1")(chdir "win64\3d_node")# Generating ud_io1.h Density_Viscosity_udf.c C:\Programme\ansys inc\v190\fluent\fluent19.0.0\src\main\global.h(9): fatal error C1083: Datei (Include) kann nicht ge”ffnet werden: "stdio.h": No such file or directory Done. "Datei (Include) kann nicht ge”ffnet werden" means translated: File(Include) cann't be opened(Sorry for the german). I cann't find the files stdio.h and i am desperate finding a solution. i appreciate any kind of help Thanks |
Code:
#include <stdio.h> |
thanks for replying,
do you mean to include this in my code? like this /************************************************** ******************* UDF that simulates solidification by specifying a temperature- dependent viscosity property ************************************************** ********************/ #include "udf.h" #include "stdio.h" DEFINE_PROPERTY(HLP46_density, c, t) { real rho; real temp = C_T(c,t); real pska, A0, A1, B, C, CP0, D, E1, E2, EO, G, RhoO, Toff; real p = C_P(c,t); pska = 10 / ((p / 100000)); /*[kg m^-1 s^-2])/(1 [kg m^-1 s^-2])*/ Toff = temp-273.15; A0 = 0.640157 * 100; A1 = 0.443242 * 10000; /*[K^-1]*/ B = 0.171801 * 10000; C = 0.215003; CP0 = 10000*(A0+A1*temp); /**[J kg^-1 K^-1]**/ D = -0.618199; /** [kg m^-3] **/ E1 = 0.115299 * 10000; E2 = -0.134291 * 10000; EO = 0.269774; /** [kg m^-3] **/ G = 0.001; /** [Pa s] **/ RhoO = 0.886860 * 1000; /**[kg m^-3] *10^3**/ rho = Toff*(EO*(1-(exp(-pska/E1)+E2*pska))+D)+RhoO/(1-C*log10((B+pska)/B)); return rho; } DEFINE_PROPERTY(cell_viscosity,c,t) { real mu_lam, Toff, G, a0, a1, a2, a3, a4, a5, a6, a7, a8, pska; real T = C_T(c,t); real p = C_P(c,t); Toff = T - 273.15 ;/*(1[K])-1*/ G = 0.001; a0 = 0.716789 * 1000; a1 = 0.116482 * 1000; a2 = 0.361897 * 10; a3 = 0.822870 / 100; a4 = -0.311457 * 100000; a5 = 0.570805 * 1000; a6 = -0.228366; a7 = -0.562193 / 100; a8 = 0.300900 / 100000; pska = 1 / ((p / 100000)); mu_lam = G * exp((a0 - a2 * Toff) / (a1 + Toff)) * exp(((a3 + a4 * pska) * exp(-Toff / (a5 + a6 * pska)) + (a7 + a8 * pska)) * pska); return mu_lam; } because i still have the same error |
I'm not sure about direct solution.
stdio.h is C library, which shold be installed with visual studio in your case you can just remove Code:
#include "stdio.h" best regards |
Thanks for your help.
I updated the windows 10 sdk library vor VS and then the code could compile successfully. i initialized my case with a pressure from 100000Pa and then i applied the density udf in my material settings. Then the following message occured: 999999: mpt_accept: error: accept failed: Invalid argument 999999: mpt_accept: error: accept failedMPI Application rank 0 exited before MPI_Finalize() with status 2 The fl process could not be started. I tried to look for a solution but i couldn't solve this yet. Has anyone an idea how to solve this error? Best regards |
Print rho to the screen.
Your equation might return a negative value or an extremely high value, that gives problems to Fluent. If this is the case: you have a problem in your equations. |
All times are GMT -4. The time now is 07:49. |