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

fvOptions: setting heat source

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 30, 2022, 12:04
Default fvOptions: setting heat source
  #1
New Member
 
Join Date: Mar 2022
Posts: 3
Rep Power: 4
Tsubasa1995 is on a distinguished road
Hello all,

I am new to Openfoam.

I am trying to set a heat source in a solid domain.
In my case, the mesh is exported from Salome, and a certain solid region is named "source" for the heat source in Salome. By "ideasUnvToFoam", the mesh is converted now. Looking at the polyMesh/cellZones, I can see
Quote:
1
(
source
{
type cellZone;
cellLabels List<label>
30
(
21
26
27
28
34
44
53
56
70
73
75
81
82
87
88
89
94
95
96
102
103
110
121
127
160
163
168
177
178
182
)
;
}
)

// ************************************************** *********************** //
So now I want to use this "source" as a heat sourc. I am using "scalarTransportFoam" for the simulaiton.

At the moment, I use this fvOption file
Quote:
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "constant";
object fvOptions;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

heatSource
{
type scalarSemiImplicitSource;
active true;
selectionMode cellZone;

scalarSemiImplicitSourceCoeffs
{
// selectionMode cellZone; // all, cellSet, cellZone, points
cellSet source;
volumeMode absolute; // absolute, specific
injectionRateSuSp
{
T (1 0);
}
}
}
but the terminal said
Quote:
/*---------------------------------------------------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 10
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
Build : 10-0347120b3b9d
Exec : scalarTransportFoam
Date : Nov 30 2022
Time : 15:24:20
Host : "tsubasa-VirtualBox"
PID : 15991
I/O : uncollated
Case : /home/tsubasa/デスクトップ/paris8_test
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 10)
allowSystemOperations : Allowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Create mesh for time = 0


SIMPLE: No convergence criteria found

Reading field T

Reading field U

Reading physicalProperties

Reading diffusivity DT

Reading/calculating face flux field phi

--> FOAM Warning : Creating fvModels from "constant/fvOptions"

Selecting finite volume model type scalarSemiImplicitSource


--> FOAM FATAL IO ERROR:
Unknown fvModel scalarSemiImplicitSource

Valid fvModels are:

22
(
accelerationSource
actuationDiskSource
buoyancyEnergy
buoyancyForce
coded
effectivenessHeatExchangerSource
explicitPorositySource
heatSource
heatTransfer
interRegionExplicitPorositySource
interRegionHeatTransfer
isotropicDamping
massSource
phaseLimitStabilisation
radialActuationDiskSource
rotorDisk
semiImplicitSource
sixDoFAccelerationSource
solidEquilibriumEnergySource
solidificationMeltingSource
verticalDamping
volumeFractionSource
)


file: /home/tsubasa/デスクトップ/paris8_test/constant/fvOptions/heatSource from line 20 to line 31.

From function static Foam::autoPtr<Foam::fvModel> Foam::fvModel::New(const Foam::word&, const Foam::dictionary&, const Foam::fvMesh&)
in file cfdTools/general/fvModels/fvModel.C at line 117.

FOAM exiting
What is wrong now? Because I am not familiar with Openfoam enough, could someone help me?

Best regards,
Tsubasa
Tsubasa1995 is offline   Reply With Quote

Old   December 1, 2022, 09:07
Default Next error
  #2
New Member
 
Join Date: Mar 2022
Posts: 3
Rep Power: 4
Tsubasa1995 is on a distinguished road
Hello,

I solved the problem above, but I face a new problem.
Would someone help me?
fvOption
Quote:
*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "constant";
object fvOptions;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

source_setting
{
type heatSource;

selectionMode cellZone;
cellZone sourcesourcesource;

Q 1;
}
Error masage
Quote:
/*---------------------------------------------------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 10
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
Build : 10-0347120b3b9d
Exec : scalarTransportFoam
Date : Nov 30 2022
Time : 22:51:00
Host : "tsubasa-VirtualBox"
PID : 18414

I/O : uncollated
Case : /home/tsubasa/デスクトップ/paris8_test
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 10)
allowSystemOperations : Allowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Create mesh for time = 0


SIMPLE: No convergence criteria found

Reading field T

Reading field U

Reading physicalProperties

Reading diffusivity DT

Reading/calculating face flux field phi

--> FOAM Warning : Creating fvModels from "constant/fvOptions"

Selecting finite volume model type heatSource
Name: source_setting
- selecting cells using cellZone sourcesourcesource
- selected 30 cell(s) with volume 0.04
--> FOAM Warning : Creating fvConstraints from "constant/fvOptions" rather than system/fvConstraints
No fvConstraints present

Calculating scalar transport

Courant Number mean: 1.46639 max: 4.77925
Time = 0.1s



--> FOAM FATAL ERROR:

lookup of physicalProperties from objectRegistry region0 successful
but it is not a basicThermo, it is a dictionary

From function const Type& Foam:bjectRegistry::lookupObject(const Foam::word&) const [with Type = Foam::basicThermo]
in file /home/ubuntu/OpenFOAM/OpenFOAM-10/src/OpenFOAM/lnInclude/objectRegistryTemplates.C at line 178.

FOAM aborting

#0 Foam::error:rintStack(Foam::Ostream&) at ??:?
#1 Foam::error::abort() at ??:?
#2 Foam::basicThermo const& Foam:bjectRegistry::lookupObject<Foam::basicTher mo>(Foam::word const&) const at ??:?
#3 Foam::fv::heatSource::addSupFields() const at ??:?
#4 Foam::fvModel::addsSupToField(Foam::word const&) const at ??:?
#5 Foam::tmp<Foam::fvMatrix<double> > Foam::fvModels::source<double>(Foam::GeometricFiel d<double, Foam::fvPatchField, Foam::volMesh> const&, Foam::word const&, Foam::dimensionSet const&) const in "/opt/openfoam10/platforms/linux64GccDPInt32Opt/bin/scalarTransportFoam"
#6 ? in "/opt/openfoam10/platforms/linux64GccDPInt32Opt/bin/scalarTransportFoam"
#7 __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"
#8 ? in "/opt/openfoam10/platforms/linux64GccDPInt32Opt/bin/scalarTransportFoam"
中止 (コアダンプ)
Tsubasa1995 is offline   Reply With Quote

Reply

Tags
fvoptions heat source


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
Adding temperature dependent heat source using fvOptions in chtMultiRegionSimpleFoam shaileshbg OpenFOAM Running, Solving & CFD 14 January 26, 2024 19:48
[Other] How to use finite area method in official OpenFOAM 2.2.0? Detian Liu OpenFOAM Meshing & Mesh Conversion 4 November 3, 2015 04:04
[Other] Adding solvers from DensityBasedTurbo to foam-extend 3.0 Seroga OpenFOAM Community Contributions 9 June 12, 2015 18:18
OpenFOAM without MPI kokizzu OpenFOAM Installation 4 May 26, 2014 10:17
[swak4Foam] funkySetFields compilation error tayo OpenFOAM Community Contributions 39 December 3, 2012 06:18


All times are GMT -4. The time now is 00:59.