|
[Sponsors] |
Tutorial/functional case for solidificationMeltingSource |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
May 28, 2018, 13:49 |
|
#21 | |
Member
Tarang
Join Date: Feb 2011
Location: Delhi, India
Posts: 47
Rep Power: 15 |
Quote:
this fvoption uses sms1:alpha1, ie ':', colon in filename. If you are using openfoam in windows, then the file may not be written as windows does not allow ':' in filenames |
||
April 9, 2019, 11:36 |
|
#22 | |
New Member
Anna
Join Date: Feb 2019
Posts: 17
Rep Power: 7 |
Hi there,
I'm trying to get sms1:alpha1 variable for using it as a condition of a new variable in chtMultiRegionFoam but I'm having problems getting the variable because it doesn't recognize it: Quote:
Thanks! |
||
April 9, 2019, 12:40 |
|
#23 |
Member
Tarang
Join Date: Feb 2011
Location: Delhi, India
Posts: 47
Rep Power: 15 |
The variable alpha1_ will not be found directly as you are using. It is there in the memory but not in the .C or .H file in which you are calling.
First you have to search for the variable and then load it. Here you can go ahead in this direction: Code:
volScalarField liquidFraction = this->mesh_.objectRegistry::lookupObject<volScalarField> ("sMS1:alpha1"); You may have to tweak the above code a bit to match the variable names present in the file. You may also look at the documentation of chtmultiregionfoam on cpp.openfoam.org. -gtarang |
|
April 10, 2019, 05:33 |
|
#24 | |
New Member
Anna
Join Date: Feb 2019
Posts: 17
Rep Power: 7 |
Thank you very much!
I've fixed the problem changing a little bit your function: Quote:
|
||
May 26, 2021, 03:42 |
liquid fraction update
|
#25 | |
Member
Join Date: Nov 2020
Posts: 53
Rep Power: 6 |
Quote:
I have asked that same question too, seems like you are a mile ahead of me in PCM. I have seen your code too, where you remove the snippet above? May I ask, how was your result? Is there any change? It seems like mine is blowing up.. Thanks.. Last edited by mikulo; May 26, 2021 at 07:39. |
||
June 4, 2021, 02:38 |
|
#26 |
Member
Tarang
Join Date: Feb 2011
Location: Delhi, India
Posts: 47
Rep Power: 15 |
I didn't remove that code. That code ensures that liquid fraction is updated only once in a timestep.
-Tarang |
|
June 4, 2021, 06:55 |
|
#27 |
Member
Join Date: Nov 2020
Posts: 53
Rep Power: 6 |
Hello Tarang,
Yes, I understand you. However, if it is updated only once, then the liquid fraction is not corrected, right?Thus, I removed it and make some changes a little bit at the top level. |
|
November 18, 2023, 15:21 |
|
#28 |
New Member
Akshay Ghorpade
Join Date: Aug 2023
Location: Delhi , India
Posts: 1
Rep Power: 0 |
Hi Anna
In solidificationandMelting Source files (.C and .H) I am unable to understand the placement of this piece of code. const volScalarField& liquidFraction = mesh.lookupObject<volScalarField>("sMS1:alpha1"); Last edited by Akshay_Ghorpade; November 18, 2023 at 15:25. Reason: Didn't write the complete information |
|
April 11, 2024, 08:19 |
chtMultiRegionFoam with solidificationMeltingSource
|
#29 |
New Member
Kevin Redosado
Join Date: Jul 2022
Posts: 3
Rep Power: 4 |
Hi, I can run the case with bouyantFoam but when I try to use chtMultiRegionFoam the fvOptions "solidificationMeltingSource" does not work. Does anyone know why?
|
|
April 11, 2024, 21:41 |
|
#30 |
Member
Join Date: Nov 2020
Posts: 53
Rep Power: 6 |
||
May 16, 2024, 10:51 |
|
#31 | |
New Member
Kevin Redosado
Join Date: Jul 2022
Posts: 3
Rep Power: 4 |
[/QUOTE]
Quote:
I cannot upload my case because it says security token is missing btw. And thanks in advance. |
||
June 13, 2024, 01:57 |
|
#32 |
New Member
Carlos Alarcon
Join Date: Jun 2021
Posts: 4
Rep Power: 5 |
Hi, I attached working melting gallium example running in openfoam11. In case someone needs to not work with a version from 15 years ago.
Launch like this $ blockMesh $ decomposePar $ mpirun -np 8 foamRun -parallel > log & $ reconstructPar $ paraFoam |
|
September 6, 2024, 17:31 |
SolidificationMelting with Shrinkage void
|
#33 | |
New Member
JANGA RAKESH KUMAR
Join Date: Aug 2024
Posts: 14
Rep Power: 2 |
Quote:
Hello Foamers I want to capture the shrinkage void at air and solid(liquid) interface during solidification. Does anybody know how to couple interFoam with this solidification solver???? If anybody has solver for this type of case, please share here Or else, If anyone knows how to make this solver, please explain. Currently, I'm struggling to setup my testcase for my thesis for this type of 3 phase. Any sort of help regarding this problem is greatly appreciated. Thanks in advance. -Rakesh |
||
October 28, 2024, 09:58 |
|
#34 |
New Member
Join Date: Jul 2009
Posts: 6
Rep Power: 17 |
Hi foamers,
I tried to run the attached example in openfoam-2312 but I got negative temperature with foam aborting. I just added Code:
pRefCell 0; pRefValue 0.0; Any idea of what's wrong here? Thank you, Nando |
|
Tags |
melting, phase change |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Is Playstation 3 cluster suitable for CFD work | hsieh | OpenFOAM | 9 | August 16, 2015 15:53 |
MRFSimpleFoam wind turbine case diverges | ysh1227 | OpenFOAM Running, Solving & CFD | 2 | May 7, 2015 11:13 |
Superlinear speedup in OpenFOAM 13 | msrinath80 | OpenFOAM Running, Solving & CFD | 18 | March 3, 2015 06:36 |
Transient case running with a super computer | microfin | FLUENT | 0 | March 31, 2009 12:20 |
Turbulent Flat Plate Validation Case | Jonas Larsson | Main CFD Forum | 0 | April 2, 2004 11:25 |