CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Community Contributions

[laserConvBC] Boundary condition with convection, heat source and radiation

Register Blogs Community New Posts Updated Threads Search

Like Tree10Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 29, 2020, 01:24
Default Error due to undetected dictionary
  #21
Member
 
Anonymous.
Join Date: Sep 2020
Posts: 35
Rep Power: 6
gentodin is on a distinguished road
Hi all,

I have been trying to get the laserConvectionBC to work however, the following error occurs every time I'm running it.

I am using Open FoAM v2006 running icoReactingInterFoAM solver.

I have added libs ("liblaserConvectionBC.so"); to controlDict.

I tried running it outside OpenfoAM folder and inside the tutorial (Multiphase) folders but the error is always the same as shown below.

--> FOAM Warning :
From void* Foam::dlLibraryTable:penLibrary(const Foam::fileName&, bool)
in file db/dynamicLibrary/dlLibraryTable/dlLibraryTable.C at line 65
Could not load "liblaserConvectionBC.so"
liblaserConvectionBC.so: cannot open shared object file: No such file or directory
Create mesh for time = 0

I have done wmake libso once following this instruction: https://bitbucket.org/shor-ty/laserc...bc/src/master/

Hopefully its not a big issue, I am considering the need to do this:
Using the BC within a special solver (not compiled as a stand alone library, offers more coupling but is only valid for this solver)
For that go to the following file
laserConvectionFvPatchField.H
Uncomment the last lines that are commented
// Only needed if you compile with your solver
#ifdef NoRepository
# include "laserConvectionFvPatchField.C"
#endif

But Im not sure how to execute this portion
"Go to the solver that you want to couple with the boundary condition
Add the boundary source file to your solver by adding the source file (and path) to the 'Make/files' file of your solver. It should look somehow like that (the first and last character is just for highlighting and should not be in the file):
'../../fvPatchFields/laserConvectionBC/laserConvectionFvPatchFields.C'
../../fvPatchFields/AOPCTractionDisplacement/AOPCTractionDisplacementFvPatchVectorField.C
../../fvPatchFields/fixedDisplacement/fixedDisplacementFvPatchVectorField.C
AOPCHeatTreatmentFoam.C

EXE = $(FOAM_USER_APPBIN)/AOPCHeatTreatmentFoam
Compile your solver
Done"

Did anyone experienced this? please help me
gentodin is offline   Reply With Quote

Old   October 4, 2020, 03:58
Default
  #22
Member
 
Anonymous.
Join Date: Sep 2020
Posts: 35
Rep Power: 6
gentodin is on a distinguished road
I just tried this extension on OFv2006 doesnt work and gives the following error when using wmake libso according to this link: https://bitbucket.org/shor-ty/laserc...bc/src/master/

In file included from laserConvectionFvPatchField.H:449:0,
from laserConvectionFvPatchFields.H:44,
from laserConvectionFvPatchFields.C:43:
laserConvectionFvPatchField.C: In constructor ‘Foam::laserConvectionFvPatchField<Type>::laserCon vectionFvPatchField(const Foam::fvPatch&, const Foam:imensionedField<Type, Foam::volMesh>&, const Foam::dictionary&)’:
laserConvectionFvPatchField.C:339:66: error: no matching function for call to ‘Foam::List<Foam::Vector<double> >::append(Foam::ITstream&)’
sourceCenters_.append(sourceDict.lookup("spotCente r"));
^
In file included from /home/wongs/OpenFOAM/OpenFOAM-v2006/src/OpenFOAM/lnInclude/List.H:381:0,
from /home/wongs/OpenFOAM/OpenFOAM-v2006/src/OpenFOAM/lnInclude/wordList.H:50,
from /home/wongs/OpenFOAM/OpenFOAM-v2006/src/OpenFOAM/lnInclude/Enum.H:43,
from /home/wongs/OpenFOAM/OpenFOAM-v2006/src/OpenFOAM/lnInclude/IOobject.H:90,
from /home/wongs/OpenFOAM/OpenFOAM-v2006/src/OpenFOAM/lnInclude/regIOobject.H:44,
from /home/wongs/OpenFOAM/OpenFOAM-v2006/src/OpenFOAM/lnInclude/GeometricField.H:45,
from /home/wongs/OpenFOAM/OpenFOAM-v2006/src/OpenFOAM/lnInclude/GeometricScalarField.H:40,
from /home/wongs/OpenFOAM/OpenFOAM-v2006/src/OpenFOAM/lnInclude/GeometricFields.H:40,
from /home/wongs/OpenFOAM/OpenFOAM-v2006/src/finiteVolume/lnInclude/volFields.H:39,
from laserConvectionFvPatchFields.C:41:
/home/wongs/OpenFOAM/OpenFOAM-v2006/src/OpenFOAM/lnInclude/ListI.H:182:13: note: candidate: void Foam::List<T>::append(const T&) [with T = Foam::Vector<double>]


And many more errors mainly from no matching function for call to the following:
‘Foam::List<Foam::Vector<double> >::append(Foam::ITstream&)’

no match for ‘operator=’ (operand types are ‘Foam::Vector<double>’ and ‘Foam::ITstream’) motionCenters_[nSources_-1] =

OFv1912 works fine.
gentodin is offline   Reply With Quote

Old   October 25, 2020, 23:21
Default Heat flux model for pulse laser welding
  #23
New Member
 
Đà Nẵng
Join Date: Jun 2019
Posts: 4
Rep Power: 7
hoai nguyen is on a distinguished road
Dear Mr. Toby,

I am building pulse laser welding model. Could you please show me how to apply heat flux model to tackle this case.
Thank you!
hoai nguyen is offline   Reply With Quote

Old   November 11, 2020, 23:56
Default Laser Beam Radius
  #24
Member
 
Anonymous.
Join Date: Sep 2020
Posts: 35
Rep Power: 6
gentodin is on a distinguished road
Any idea how I can tell the laser beam radius from the Temperature file? Im thinking SigmaX and SigmaY is the only way to control the laser beam radius, but looking through the guide from Tobi's laserConvectionBc, I still have not much clue to it.
gentodin is offline   Reply With Quote

Old   February 22, 2021, 11:22
Default
  #25
Member
 
Avdeev Evgeniy
Join Date: Jan 2011
Location: Togliatty, Russia
Posts: 69
Blog Entries: 1
Rep Power: 21
j-avdeev will become famous soon enough
Send a message via Skype™ to j-avdeev
Quote:
Originally Posted by gentodin View Post
Any idea how I can tell the laser beam radius from the Temperature file? Im thinking SigmaX and SigmaY is the only way to control the laser beam radius, but looking through the guide from Tobi's laserConvectionBc, I still have not much clue to it.
Yes, you are right SigmaX and SigmaY is about laser dot radius.

Also I had made test case, which worked on old OpenFOAM v. 4.0, at least 2 years ago. Maybe will be helpful

https://github.com/j-avdeev/LaserCase
raj kumar saini likes this.
j-avdeev is offline   Reply With Quote

Reply

Tags
mixed boundary condition


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
Radiation in semi-transparent media with surface-to-surface model? mpeppels CFX 11 August 22, 2019 08:30
Question about adaptive timestepping Guille1811 CFX 25 November 12, 2017 18:38
Monte Carlo Simulation: H-Energy is not convergating & high Incident Radiation volleyHC CFX 5 April 3, 2016 06:41
Radiation heat transfer boundary condition natrask OpenFOAM Programming & Development 0 February 8, 2015 10:05
GETVAR Error in Multiband Monte Carlo Radiation Simulation with Directional Source silvan CFX 3 June 16, 2014 10:49


All times are GMT -4. The time now is 11:32.