CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Main CFD Forum (https://www.cfd-online.com/Forums/main/)
-   -   Regarding Coding in CFD (https://www.cfd-online.com/Forums/main/137284-regarding-coding-cfd.html)

abhayIITM June 13, 2014 03:00

Regarding Coding in CFD
 
If I want to access the CFD code in any commercial Software, Then How should I do the same?
What are basic prerequisites for CFD coding
?
Usaully in which Language the codes have been written??

leflix July 20, 2014 13:56

Quote:

Originally Posted by abhayIITM (Post 496872)
If I want to access the CFD code in any commercial Software, Then How should I do the same?
What are basic prerequisites for CFD coding
?
Usaully in which Language the codes have been written??


generally commercial codes allows simple coding adding in their software through user defined funtions.
In Ansys Fluent it's a kind of C language
In Star CCM+ it is in fortran I think.

jackchilvers July 22, 2014 13:18

Fluent allows access to flow variables and parameters using the UDF framework. Obviously this won't help you if you're looking to see the 'nuts and bolts' of the solver itself, but it does provide a useful way of adding on your own pieces of code.

Pre-defined macros allow access to solver variable quite intuitively and also includes loops across the entire domain.

I hope that goes some way to answering your question!

Asghari_M July 22, 2014 14:20

By using OpenFoam CFD code ,yoy can access open cfd source codes even for main routines


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