|
[Sponsors] |
[laserConvBC] Boundary condition with convection, heat source and radiation |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
September 29, 2020, 01:24 |
Error due to undetected dictionary
|
#21 |
Member
Anonymous.
Join Date: Sep 2020
Posts: 35
Rep Power: 6 |
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 |
|
October 4, 2020, 03:58 |
|
#22 |
Member
Anonymous.
Join Date: Sep 2020
Posts: 35
Rep Power: 6 |
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. |
|
October 25, 2020, 23:21 |
Heat flux model for pulse laser welding
|
#23 |
New Member
Đà Nẵng
Join Date: Jun 2019
Posts: 4
Rep Power: 7 |
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! |
|
November 11, 2020, 23:56 |
Laser Beam Radius
|
#24 |
Member
Anonymous.
Join Date: Sep 2020
Posts: 35
Rep Power: 6 |
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.
|
|
February 22, 2021, 11:22 |
|
#25 | |
Member
Avdeev Evgeniy
Join Date: Jan 2011
Location: Togliatty, Russia
Posts: 69
Blog Entries: 1
Rep Power: 21 |
Quote:
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 |
||
Tags |
mixed boundary condition |
|
|
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 |