Showing posts with label CFD. Show all posts
Showing posts with label CFD. Show all posts

Sunday, December 10, 2017

Fluent 17.2 C++compiler



For the case if you have troubles with C++ compiler and tools installation and some bugs, the following workaround will help you.

1) Download and install Microsoft Visual studio, say 2015.
2) Browse to C:\Program Files\ANSYS Inc\v172\fluent\ntbin\win64 and backup udf.bat to udf.bat.ORIG
3) Place the following code to udf.bat

@echo off
rem ---
rem MS Visual C++
rem ---
set MSVC=
set MSVC_VERSION=0

set MSVC_VERSION=172
call "c:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" x86_amd64

echo Detected MSVC%MSVC_VERSION% under ""
echo path=%path%
echo include=%include%
echo lib=%lib%


4) Make sue that in Fluent launcher on the Environment Tab the the Set up Compilation Environment for UDF checkbox is picked up.

Enjoy...

Also useful information can be found here -   COMPILING AND LOADING USER DEFINED FUNCTIONS USING FLUENT 14.5 OR 15.0


Tuesday, February 3, 2015

Acoustic model for far distance propagation coupling with CFD


Is the acoustic model for far distance propagation coupling with CFD can handle sound propagation over different media like air, water?

Direct prediction of far‐field noise in a CFD code is made somewhat impractical because of the meshing and timestep requirements.



  • First, you must solve the time accurate compressible Navier‐Stokes equations. Accurately resolving the propagation of acoustic waves imposes timestep restrictions such that the Courant number is in the range of 1‐2 at most. This restriction can be highly costly. 
  • Second, the CFD mesh must span all the way to the reception points with enough spatial resolution to directly resolve acoustic waves over the propagation distance with minimal to no numerical damping. 
These requirements do not make practical sense for many industrial applications. Practical predictions of farfield sound pressure levels are made by first starting with a time accurate CFD calculation of the near field region. Boundary and interior noise sources are taken from the transient CFD calculation, and used as input to an acoustic code using the Lighthill analogy. This method is however a one‐way approach that ignores coupling between acoustics and the flow field, and assumes the fluid behaves as an ideal gas.

How to Encrypt and Decrypt Files With GPG on Linux

https://www.howtogeek.com/427982/how-to-encrypt-and-decrypt-files-with-gpg-on-linux/