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

How to visualize source term (scalar) added through vectorCodedSource in fvOptions

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 8, 2023, 08:24
Default How to visualize source term (scalar) added through vectorCodedSource in fvOptions
  #1
Senior Member
 
chandra shekhar pant
Join Date: Oct 2010
Posts: 220
Rep Power: 16
chandra shekhar pant is on a distinguished road
Dear Foamers,
I am trying to add a source term ("s1", which is a function of time) in the momentum equation using the
Code:
vectorCodedSource
functionality in the fvOptions, this source term "s1" is basically a scalar quantity added on the x momentum equation as:

Code:
if (t2<tf)
			{
		        	s1 = 0.00001296*f/V[celli];
		        	USource[celli] -= vector(s1, 0,0 );
		   	
		        	
			}
			if (t2>=tf && t2<=tp)
			{
	
				s1 = 0.0;
				USource[celli] -= vector(s1, 0,0 );
			
		
			}
I am interested in plotting or visualizing the "s1", could anyone please help, any comment/suggestion would be welcomed, many thanks in advance.
chandra shekhar pant 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
Division by zero exception - loop over scalarField Pat84 OpenFOAM Programming & Development 6 February 18, 2017 05:57
[OpenFOAM.org] Error creating ParaView-4.1.0 OpenFOAM 2.3.0 tlcoons OpenFOAM Installation 13 April 20, 2016 17:34
OpenFOAM without MPI kokizzu OpenFOAM Installation 4 May 26, 2014 09:17
OpenFOAM on MinGW crosscompiler hosted on Linux allenzhao OpenFOAM Installation 127 January 30, 2009 19:08
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 19:36.