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

Reading a list of properties

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   May 19, 2022, 15:46
Default Reading a list of properties
  #1
New Member
 
Sandilya Garimella
Join Date: Sep 2016
Posts: 2
Rep Power: 0
SandilyaCFD is on a distinguished road
Hi I am trying to solve an equation that looks like below:

\nabla^{2}\Phi=\Sigma_{i} s_{i} v_{i}

Here i is a user defined input with si and vi being a user defined properties (some are scalars and others vectors). Essentially there are user defined number of values over which I need to sum over to get the source term for my Laplacian.

To be able to do this, essentially I want to define a input dictionary file that has a syntax something like:


<List>
n
{
s1 v1
s2 v2
.
.
.
si vi
.
.
sn vn
}

A sample will look something like this

3
{
1 (0 0 0)
1 (1 2 3)
16 (8 5 4)
}

I want to know the syntax or some pointer to an example where a custom list of properties is defined and syntaxes to read the elements of the list to define my solver.

Thank you for your suggestions.
SandilyaCFD is offline   Reply With Quote

 


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
[foam-extend.org] Problems installing foam-extend-4.0 on openSUSE 42.2 and Ubuntu 16.04 ordinary OpenFOAM Installation 19 September 3, 2019 18:13
polynomial BC srv537 OpenFOAM Pre-Processing 4 December 3, 2016 09:07
execFlowFunctionObjects - unknown field problem Toorop OpenFOAM Post-Processing 16 March 14, 2016 03:25
Read inside a class tonyuprm OpenFOAM 12 July 14, 2010 02:35
OpenFOAM on MinGW crosscompiler hosted on Linux allenzhao OpenFOAM Installation 127 January 30, 2009 19:08


All times are GMT -4. The time now is 13:30.