|
[Sponsors] |
December 11, 2020, 10:47 |
Laser DTRM / Laser Convection BC in v2006
|
#1 |
New Member
Jonas
Join Date: Dec 2020
Posts: 5
Rep Power: 5 |
Hey everyone,
being rather new to using OpenFOAM I would like to implement an additional light source to my current simulations of a polymere-based additive manufacturing process. The idea is to simulate the heat absorption of named light source and observe temperature increase and melting. As I am running my simulations on a university cluster I am limited to using the OpenFOAM-v2006 version (or OpenFOAM-7, but this one does not include the icoReactingMultiPhaseInterFoam solver that I would like to use). During my research on this forum and other sources I have only found 2 ways to realize my goals: 1) The laser convection boundary condition, originally introduced by Tobias Holzmann (https://bitbucket.org/shor-ty/laserconvectionbc). This one would be the optimal solution for my application, but sadly it does not seem to be compiling properly in v2006 - and I don't currently have the option to switch back to v1812/ v1912. 2) The Laser DTRM function is included in the icoReactingMultiPhaseInterFoam solver, but I have not rly found a proper way to put this one into good use. Any ideas and recommendations are gladly appreciated! Greetings, Jon |
|
December 13, 2020, 07:10 |
|
#2 | |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,714
Rep Power: 40 |
Quote:
Code:
word foo = dict.lookup("foo"); // bad, cannot convert ITstream to word word foo(dict.lookup("foo"); // good, construct from stream word foo(dict.get<word>("foo")); // with check for trailing junk bool bar = dict.lookup("bar"); //??? bool bar = readBool(dict.lookup("bar")); bool bar = Switch(dict.lookup("bar")); bool bar = dict.get<bool>("bar"); |
||
December 14, 2020, 05:11 |
|
#3 | |
New Member
Jonas
Join Date: Dec 2020
Posts: 5
Rep Power: 5 |
Quote:
Sadly I am too uneducated with the whole Syntax and everything else included in the OpenFoam libraries to fully be able to understand your otherwise probably very helpful hint. With what I can recall from memory (currently in Homeoffice, so I can't print the exact error message), most of the compiling errors occured whenever the "XY.append()" was called, stating Syntax errors in those lines. I do admit this vague information is most likely unhelpful, but thanks for your tip and I'll try to look further into it. |
||
December 15, 2020, 06:09 |
|
#4 | |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,714
Rep Power: 40 |
Quote:
The openfoam.com version has become much pickier about implicit conversions. This is annoying for cases like this, where you would just like get things compiling. On the other hand, it does not really make much sense (other than laziness) to implicitly construct something like a vector or a point from a stream, which is what the laser BC code is currently doing. |
||
Tags |
laser melting, laser-heating, laserdtrm, openfoam-v2006 |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
icoReactingMultiphaseInterFoam Laser DTRM | OPFO | OpenFOAM Running, Solving & CFD | 42 | August 19, 2022 02:29 |
Laser DTRM Feature in icoReactingMultiphaseInterFoam | mattms | OpenFOAM Running, Solving & CFD | 3 | June 2, 2021 05:30 |
Thermophysical properties for natural convection | Ciefdi | OpenFOAM Running, Solving & CFD | 0 | November 7, 2013 12:44 |
Modeling both radiation and convection on surfaces - Ansys Transient Thermal R13 | s.mishra | ANSYS | 0 | March 31, 2012 05:12 |
natural convection problem with radiation | jorien | CFX | 0 | October 14, 2011 10:26 |