|
[Sponsors] |
|
April 24, 2012, 03:28 |
|
#1 |
Member
Anja Miehe
Join Date: Dec 2009
Location: Freiberg / Germany
Posts: 48
Rep Power: 16 |
Hello Dirk,
Thanks for your answer. I am using the code by Fabian Rösler and I have read the paper by him as well as the paper for the d'Arcy Term and the techniques for the energy equation. However, I still have problems with the additional source terms in the concentration equation. Would you share some code? The ideas I had in coding do compile but do I do get errors on solving. Regards, Anja |
|
May 2, 2012, 04:16 |
|
#2 | |
Member
Join Date: Nov 2011
Location: Berlin
Posts: 31
Rep Power: 14 |
hi anja,
i observed that the solution is very sensible to the diffusion coefficient (->instable if too high). In principle it works like described above with the governing eqn for the concentration, where the source term for cLiq is given by the change of alpha. { dAlpha = alpha - alpha.oldTime(); cTmp = - dAlpha * cLiq * k / runTime.deltaT(); fvScalarMatrix liqSegEqn ( fvm::ddt(cLliq) + fvm::div(phi, cLiq) - alpha * fvm::laplacian(DLiq, cLiq) == cTmp ); pLiqSegEqn.solve(); }; As mentioned, there is still a error for the total bilance over time evolution which I could not fix yet. best dirk Quote:
|
||
May 14, 2012, 04:32 |
another problem for the solver
|
#3 |
Member
Join Date: Nov 2011
Location: Berlin
Posts: 31
Rep Power: 14 |
Hi,
I fond another strange behaviour of this solver. If I use it for the mirrored problem (i.e. the solidification goes form left to right) the solution changes. because laplacian(DLiq, cLiq) gives either positive or negative values, depending on the direction. But why? Idea: use the abs value of it, but this wont compile. How can I write: alpha * fvm::laplacian(DLiq, cLiq) as mag(alpha * fvm::laplacian(DLiq, cLiq)) or similar? Here the solver again: { dAlpha = alpha - alpha.oldTime(); cTmp = - dAlpha * cLiq * k / runTime.deltaT(); fvScalarMatrix liqSegEqn ( fvm::ddt(cLliq) + fvm::div(phi, cLiq) - alpha * fvm::laplacian(DLiq, cLiq) // <- this term acts as source or as sink, depending on the direction of solidifiaction == cTmp ); liqSegEqn.solve(); }; The other problem: "large" diffusion coefficients for DLiq(>1e-6) end in no usable, funny patterns for the concentration - also for smaller timesteps. What else could I adjust? Thanks for any hint. dirk |
|
Tags |
alloy, melting, segregation, solidification |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
area does not match neighbour by ... % -- possible face ordering problem | St.Pacholak | OpenFOAM | 10 | February 7, 2024 21:50 |
conduction problem | venkataramana | OpenFOAM | 3 | December 1, 2013 07:30 |
natural convection problem for a CHT problem | Se-Hee | CFX | 2 | June 10, 2007 06:29 |
Adiabatic and Rotating wall (Convection problem) | ParodDav | CFX | 5 | April 29, 2007 19:13 |
Melting Problem | M | FLUENT | 0 | April 29, 2007 16:07 |