CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Laser DTRM / Laser Convection BC in v2006

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By olesen

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 11, 2020, 10:47
Default Laser DTRM / Laser Convection BC in v2006
  #1
New Member
 
Jonas
Join Date: Dec 2020
Posts: 5
Rep Power: 5
JonL is on a distinguished road
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
JonL is offline   Reply With Quote

Old   December 13, 2020, 07:10
Default
  #2
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,679
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
Quote:
Originally Posted by JonL View Post
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.
It should not take very much to get it compiling with v2006. Most of the compilation errors are likely related to sloppy conversion of dictionary lookups to variables. Eg,
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");
Uyan likes this.
olesen is offline   Reply With Quote

Old   December 14, 2020, 05:11
Default
  #3
New Member
 
Jonas
Join Date: Dec 2020
Posts: 5
Rep Power: 5
JonL is on a distinguished road
Quote:
Originally Posted by olesen View Post
It should not take very much to get it compiling with v2006. Most of the compilation errors are likely related to sloppy conversion of dictionary lookups to variables. Eg,
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");
Thank you very much for the quick response!

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.
JonL is offline   Reply With Quote

Old   December 15, 2020, 06:09
Default
  #4
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,679
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
Quote:
Originally Posted by JonL View Post
Thank you very much for the quick response!

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.
I cloned and quickly chucked it at the compiler. Your memory is correct, the errors with the various appends are the same thing as I mentioned previously.
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.
olesen is offline   Reply With Quote

Reply

Tags
laser melting, laser-heating, laserdtrm, openfoam-v2006

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 18:35.