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

Dimension error -It don't match the expected dimensions

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 31, 2023, 02:02
Smile Dimension error -It don't match the expected dimensions
  #1
New Member
 
Hana Suda
Join Date: May 2023
Posts: 3
Rep Power: 3
Hananas is on a distinguished road
Hi everyone,

I am Hananas and new to OpenFOAM.

I am arranging buoyantBoussinesqSimpleFoam so that it can calculate absolute humidity. The name of this new case is "X_buoyantBoussinesqSimpleFoam".

However, core dump occurred after I run the code.
So I checked the log file, and it said "The dimensions [0 2 -1 0 0 0 0] provided do not match the expected dimensions [0 0 0 0 0 0 0]"

My question is;
How can I change the expected dimensions [0 0 0 0 0 0 0] to [0 2 -1 0 0 0 0]?

The dimensions of DX should be [0 2 -1 0 0 0 0]. So, I need to revise this expected dimensions. I guess it came from the dimensions of X(I set the dimensions of X as [0 0 0 0 0 0 0] because it is [kg/kg(DA)])

I am looking forward to your reply!
I attached the files and will write where I revised after this comment. So please confirm them.
Attached Files
File Type: zip [copy]X_buoyantBoussinesqSimpleFoam.zip (4.1 KB, 1 views)
File Type: zip hotRoom.zip (132.5 KB, 1 views)
Hananas is offline   Reply With Quote

Old   May 31, 2023, 02:05
Default Where I revised
  #2
New Member
 
Hana Suda
Join Date: May 2023
Posts: 3
Rep Power: 3
Hananas is on a distinguished road
[X_buoyantBoussinesqSimpleFoam]
1. file name: X_buoyantBoussinesqSimpleFoam.C
I added #include "XEqn.H" in the 94th line.

2. file name: XEqn.H
I created this file (I refered to TEqn.H).

3. file name: readTransportProperties.H
I added "Vapor diffusion number" and "Turbulent Schmidt number" in the 20-24th line.

4. file name: createFields.H
I added some code to calculate X in the 17-29th line.






[hotRoom]
1. file name: 0/X.orig
I created this file (I refered to T.orig).
And I added \cp 0/X.orig 0/X in the 8th line in Allrun.

2. file name: constant/transportProperties
I added "Vapor diffusion number" and "Turbulent Schmidt number" in the 35-39th line.

3. file name: controlDict
I revised the name in the 18th line.

4. file name: fvSchemes
I added a code related to X in the 34th line.

5. file name: fvSolution
I added X in the 28th & 48th & 65th line.
Hananas is offline   Reply With Quote

Reply

Tags
absolute humidity, dimensional error, openfoam, solver development


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
ParaView: Number of cells/points in mesh and field don't match Jaggy_Snake OpenFOAM Bugs 2 March 1, 2017 10:06
FSI: Pressure and Normal Force don't match with expected values Geraud CFX 6 August 21, 2012 16:34
Match Control and Symmetry Boundary Condtions in a quasi 2D calculation peterputer ANSYS Meshing & Geometry 0 May 15, 2012 09:53
ParaView for OF-1.6-ext Chrisi1984 OpenFOAM Installation 0 December 31, 2010 07:42
gmsh2ToFoam sarajags_89 OpenFOAM 0 November 24, 2009 23:50


All times are GMT -4. The time now is 11:06.