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

Including previous binary values in new BC set up

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 11, 2019, 12:49
Default Including previous binary values in new BC set up
  #1
New Member
 
Join Date: Sep 2015
Posts: 13
Rep Power: 10
ChrisHa is on a distinguished road
Hi all,

I don't know C++, but I wanted to include binary value from a previous run in a new case setup with different boundary conditions. I thought I could save the relevant data as seperate files and use '#include' to include it 1:1 in my BC files. For example: I extract the internal pressure field and save it to a file 'initial/internal_p' so that it looks like:
Code:
internalField   nonuniform List<scalar>·
5309304
(
***internal field as binary data here***
);
and include it later with
Code:
#include "/initial/internal_p"
in my BC file for p.
If I want to run the case, I get the following error:
Code:
--> FOAM FATAL IO ERROR:
Wrong token type - expected scalar value, found on line 10: word '濵'

file: <zip>/initial/internal_p at line 10.

    From function Foam::Istream& Foam::operator>>(Foam::Istream&, Foam::doubleScalar&)
    in file lnInclude/Scalar.C at line 149.
Is it not possible to include binary data this way? How should I do it correctly?
Thank you!
ChrisHa is offline   Reply With Quote

Reply


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
Set values of a volVectorField to zero GustavGans OpenFOAM Programming & Development 12 April 9, 2019 00:12
Is it possible to set up radiative transfer equation(RTE) including scattering?? kane OpenFOAM Programming & Development 0 March 19, 2018 03:55
How can I set the right Reference Values for airfoil simulation otubaba FLUENT 2 June 13, 2015 17:34
Cluster ID's not contiguous in compute-nodes domain. ??? Shogan FLUENT 1 May 28, 2014 15:03
Level set values for a cartesian grid werder85 Main CFD Forum 0 March 10, 2011 20:44


All times are GMT -4. The time now is 03:36.