|
[Sponsors] |
October 30, 2014, 11:13 |
|
#1 |
Member
sajad
Join Date: Apr 2014
Location: Iran
Posts: 46
Rep Power: 11 |
hi
I make gradient boundry for T as below: Code:
/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 2.0.1 | | \\ / A nd | Web: www.OpenFOAM.com | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class volVectorField; location "0"; object gradient; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // dimensions [0 -1 0 1 0 0 0]; internalField uniform (0,0,0); boundaryField { floor { type zeroGradient; } ceiling { type zeroGradient; } inlet { type fixedValue; value uniform (0,0,0); } outlet { type zeroGradient; } block { type fixedValue; value uniform (30,30,30); } frontback { type empty; } } Code:
/*---------------------------------------------------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 2.1.0 | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ Build : 2.1.0-0bc225064152 Exec : wallGradT Date : Oct 30 2014 Time : 18:43:10 Host : "sajad-pc" PID : 13235 Case : /home/sajad/Desktop/heatedCavity nProcs : 1 sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE). fileModificationChecking : Monitoring run-time modified files using timeStampMaster allowSystemOperations : Disallowing user-supplied system call operations // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // Create time Create mesh for time = 0 --> FOAM FATAL IO ERROR: wrong token type - expected Scalar, found on line 20 the punctuation token ',' file: /home/sajad/Desktop/heatedCavity/0/gradient::internalField at line 20. From function operator>>(Istream&, Scalar&) in file lnInclude/Scalar.C at line 91. FOAM exiting --------- edit: How can I set boundry for gradientT? ----------- edit 2: how can I calculate gradT in wall? Last edited by wyldckat; November 1, 2014 at 15:45. Reason: posted a few minutes apart... and added [CODE][/CODE] markers |
|
November 1, 2014, 15:48 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128 |
Hi sajad6,
When it comes to OpenFOAM, every single detail, no matter how small, is more important than you might want to believe. The error is related to the lines that are defined like this: Code:
value uniform (0,0,0); Code:
value uniform (0 0 0); Best regards, Bruno PS: When posting code and/our text output from a solver or utility, or the contents of a folder, please follow the instructions given here: Posting code and output with [CODE] |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Gradient Computation: finite differences and adjoint method | doan.nak | SU2 | 3 | November 22, 2017 06:37 |
calculate gradient tension in udf | mohsenz_136 | Fluent UDF and Scheme Programming | 1 | January 5, 2013 04:15 |
WSS and normal velocity gradient for the slanted pipe | wanna88 | FLUENT | 2 | October 1, 2012 23:34 |
Temperature Gradient at Wall | sven | OpenFOAM | 7 | November 1, 2010 18:25 |
calculate the temperature gradient on a profile | arther | FLUENT | 0 | April 20, 2006 00:12 |