|
[Sponsors] |
The problem of solving transport equations with second-order transient terms |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#1 |
New Member
wenbozhou
Join Date: Mar 2024
Posts: 3
Rep Power: 2 ![]() |
Hi,
I had a problem defining additional variables using CFX. The transient term of the equation I need to solve is second-order, not a standard transport equation, so I want to know how to deal with this kind of problem using cfx. Any suggestions would be greatly appreciated. |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,902
Rep Power: 144 ![]() ![]() ![]() ![]() |
I cannot see an easy way of implementing that equation using the built in additional variables. I think you will have to model that using a user fortran routine you write yourself.
I would store the variable as an algebraic additional variable, but all the calculations on it would be done in user fortran. This would not be easy to do, as you will have to develop a numerical scheme which converges and is stable and which intergates into the CFX structure. Depending on how complex the rest of your model is you could consider modelling the whole system in something like matlab where you then have full control over the equations you are solving.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum. |
|
![]() |
![]() |
![]() |
![]() |
#3 |
Senior Member
Join Date: Jun 2009
Posts: 1,884
Rep Power: 33 ![]() |
First of all, what equation are you solving?
Let us say your equation is: ![]() You can break it up into two equations of 1st-order by ![]() ![]() This will let the solver deal with them, but the solver does not know they are connected, and depending on the nature of the transient, the numerical stencil of splitting the 2nd-order time derivative may bring some truncation errors.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum. |
|
![]() |
![]() |
![]() |
![]() |
#4 | |
New Member
wenbozhou
Join Date: Mar 2024
Posts: 3
Rep Power: 2 ![]() |
Quote:
The equation is not complicated except for the transient term, where the "omega" in the source term is the vorticity vector and "u" is the velocity vector. I've read the user help documentation and there doesn't seem to be any mention of changes to transient items in additional variables. Therefore, I am considering using Fortran to solve this equation. |
||
![]() |
![]() |
![]() |
![]() |
#5 |
New Member
wenbozhou
Join Date: Mar 2024
Posts: 3
Rep Power: 2 ![]() |
Quote:
|
|
![]() |
![]() |
![]() |
Tags |
additional variables |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
chtMultiRegionSimpleFoam: maximum number of iterations excedeed. | Nkl | OpenFOAM Running, Solving & CFD | 19 | October 10, 2019 03:42 |
Free surface issues with interDyMFoam for hydroturbine | oumnion | OpenFOAM Running, Solving & CFD | 0 | October 6, 2017 15:05 |
Compressor Simulation using rhoPimpleDyMFoam | Jetfire | OpenFOAM Running, Solving & CFD | 107 | December 9, 2014 14:38 |
Orifice Plate with a fully developed flow - Problems with convergence | jonmec | OpenFOAM Running, Solving & CFD | 3 | July 28, 2011 06:24 |
Error while running rhoPisoFoam.. | nileshjrane | OpenFOAM Running, Solving & CFD | 8 | August 26, 2010 13:50 |