|
[Sponsors] |
Modified polynomial thermophysical and transport properties |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
May 5, 2021, 06:33 |
Modified polynomial thermophysical and transport properties
|
#1 |
New Member
Tijan Mede
Join Date: Apr 2021
Posts: 1
Rep Power: 0 |
Dear all,
I am new to openFOAM and I'm trying to use it to solve heat transfer during SLM (selective laser melting) and I am experiencing some difficulties correctly defining the temperature-dependent material properties. The problem is that the process involves an irreversible transformation of material from powder to bulk state, when the melting takes place. The material properties of bulk and powder follow different temperature dependencies. The idea that I had was declaring a new field (beta) on the mesh, where the state of material (powder-->1 and bulk-->0) is followed. This field could then be used to modify the polynomial equations for material properties. For instance, if the regular polynomial equation for Cp follows the following dependence: Cp coeffs: (X0,X1,X2,X3) Cp = X0 + X1*T + X2*T^2 + X3*T^3, I would like to modify it in the following manner: Cp coeffs bulk: (X0,X1,X2,X3) Cp coeffs powder: (Y0,Y1,Y2,Y3) Cp = (1-beta)* (X0 + X1*T + X2*T^2 + X3*T^3) + (beta)* (Y0 + Y1*T + Y2*T^2 + Y3*T^3). My questions are as follows: 1.) Is it correct that in order to alter the polynomial equations I should modify the: - hPolynomialThermoI.H file for Cp - PolynomialThermoI.H file for mu - icoPolynomialI.H file for rho ? 2.) As I am very unfamiliar to C++, I'm having problems locating where in these files the polynomes are being resolved and hence which part of the code needs to be modified. Could you please point me to the relevant lines of the code? Any help will be greatly appreciated! Best, Tijan |
|
August 20, 2021, 02:49 |
|
#2 | |
Member
Join Date: Nov 2020
Posts: 53
Rep Power: 5 |
Quote:
If i understood well, you kinda wanted to have two CpCoeffs, right? You look at the codes for .H and .C of these files, then add a variable similar to how CpCoeffs is defined or passed in a function. In other words, you simply have to add say Polynomial ... CpCoeffs2 for you second CpCoeffs. You need to see the Doxygen in order to know which files are calling which. You will see that you need to modify specie, basic, and rhoReactionThermo for all of this. They are all interrelated with one another. |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Polynomial density and transport properties in buoyantBoussinesqSimpleFoam | pedera | OpenFOAM Running, Solving & CFD | 29 | November 16, 2016 02:33 |
Transport and Thermophysical Properties | dancfd | OpenFOAM Pre-Processing | 0 | September 12, 2014 19:52 |
confused with units in solidThermophysical properties and Thermophysical properties | zahraa | OpenFOAM Running, Solving & CFD | 3 | August 14, 2014 08:11 |
Polynomial thermophysical properties exeeds number of iterations | Kenna | OpenFOAM Running, Solving & CFD | 1 | November 22, 2013 09:40 |
Thermophysical properties for natural convection | Ciefdi | OpenFOAM Running, Solving & CFD | 0 | November 7, 2013 11:44 |