|
[Sponsors] |
Tutorial/functional case for solidificationMeltingSource |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
May 28, 2018, 12: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, 10: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, 11: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, 04: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, 02:42 |
liquid fraction update
|
#25 | |
Member
Join Date: Nov 2020
Posts: 53
Rep Power: 5 |
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 06:39. |
||
June 4, 2021, 01: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, 05:55 |
|
#27 |
Member
Join Date: Nov 2020
Posts: 53
Rep Power: 5 |
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, 14: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 14:25. Reason: Didn't write the complete information |
|
April 11, 2024, 07:19 |
chtMultiRegionFoam with solidificationMeltingSource
|
#29 |
New Member
Kevin Redosado
Join Date: Jul 2022
Posts: 2
Rep Power: 0 |
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, 20:41 |
|
#30 |
Member
Join Date: Nov 2020
Posts: 53
Rep Power: 5 |
||
Tags |
melting, phase change |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Is Playstation 3 cluster suitable for CFD work | hsieh | OpenFOAM | 9 | August 16, 2015 14:53 |
MRFSimpleFoam wind turbine case diverges | ysh1227 | OpenFOAM Running, Solving & CFD | 2 | May 7, 2015 10:13 |
Superlinear speedup in OpenFOAM 13 | msrinath80 | OpenFOAM Running, Solving & CFD | 18 | March 3, 2015 05:36 |
Transient case running with a super computer | microfin | FLUENT | 0 | March 31, 2009 11:20 |
Turbulent Flat Plate Validation Case | Jonas Larsson | Main CFD Forum | 0 | April 2, 2004 10:25 |