CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

funkysetfields error

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 23, 2021, 03:45
Default funkysetfields error
  #1
New Member
 
Join Date: Jun 2021
Posts: 6
Rep Power: 4
Atieh.alizadeh is on a distinguished road
I am using funkysetfields to introduce my initial conditions of temperature and pressure in fluid region of a chtmultiregionfoam case,
Code:
expressions
 ( 
   T.air
    {
     field T;
     variables "T0=300;Z=pos().z;gamma_1=10;gamma_2=0.005;";
     expression "Z <= 200 ? T0+(gamma_1)*(Z) : ( Z<=350 ? T0+(gamma_1)*200 : (T0+(gamma_1)*200)-(0.005)*(Z-350))";
      keepPatches 1;
     }

  p.air
    {
    field p;
     variables "T0=300;P0=100000;gamma_1=0.01;gamma_2=0.005;Z=pos().z;R=8.13;";
     valueExpression "Z <= 200 ? P0*(pow((1-(gamma_1)*Z/T0),7.9)) : (Z<=350 ? P0*(pow((1-(gamma_1)*200/T0),7.9)) : (P0*(pow((1-(gamma_1)*200/T0),7.9)))*((pow((1-(gamma_1)*(Z-350)/T0),16))))";
 keepPatches 1;
     }
);
i get this error :
Create time
Create mesh for time = 0
Time = 0
Using funkySetFieldsDict
Part: T.air
Modifying field T of type IOobject

Putting "Z <= 200 ? T0+(gamma_1)*(Z) : ( Z<=350 ? T0+(gamma_1)*200 : (T0+(gamma_1)*200)-(0.005)*(Z-350))" into field T at t = "0" if condition "true" is true
Keeping patches unaltered

AMI: Creating addressing and weights between 10410 source faces and 10410 target faces
AMI: Patch source sum(weights) min/max/average = 1, 1, 1
AMI: Patch target sum(weights) min/max/average = 1, 1, 1
swak4Foam: Allocating new repository for sampledMeshes
swak4Foam: Allocating new repository for sampledGlobalVariables

--> FOAM FATAL ERROR:
The type of the T is IOobject. Seems that it doesn't exist. Use 'create'

From function doAnExpression()
in file funkySetFields.C at line 414.

FOAM exiting

would you please guide me?
Atieh.alizadeh is offline   Reply With Quote

Reply

Tags
error, funkysetfields


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
[OpenFOAM.org] compile error in dynamicMesh and thermophysicalModels libraries NickG OpenFOAM Installation 3 December 30, 2019 00:21
[blockMesh] blockMesh with double grading. spwater OpenFOAM Meshing & Mesh Conversion 92 January 12, 2019 09:00
[swak4Foam] GroovyBC the dynamic cousin of funkySetFields that lives on the suburb of the mesh gschaider OpenFOAM Community Contributions 300 October 29, 2014 18:00
OpenFOAM without MPI kokizzu OpenFOAM Installation 4 May 26, 2014 09:17
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 17:51


All times are GMT -4. The time now is 04:45.