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

Writing out source term, coriolis and centrifugal in SRFPimpleFoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 23, 2019, 07:10
Default Writing out source term, coriolis and centrifugal in SRFPimpleFoam
  #1
New Member
 
Madeleine Combrinck
Join Date: Jan 2011
Posts: 2
Rep Power: 0
Madeleine C is on a distinguished road
I am attempting the write out the source terms in ther SRFPimpleFoam solver. Using a similar way than what is used to write out the Uabs:


createFields.H


// Create the Uabs
volVectorField Uabs
(
IOobject
(
"Uabs",
runTime.timeName(),
mesh,
IOobject::NO_READ,
IOobject::AUTO_WRITE
),
SRF->Uabs()
);

// Create the Su
volVectorField Su
(
IOobject
(
"Su",
runTime.timeName(),
mesh,
IOobject::NO_READ,
IOobject::AUTO_WRITE
),
SRF->Su()
);


This works fine for Uabs, but the problem comes in with Su and its separate terms Fcoriolis() + Fcentrifugal().


The difference is that Uabs is a is volVectorField while the source terms are internal fields, from SRFModel.H:



//- Return the coriolis force
tmp<volVectorField::Internal> Fcoriolis() const;

//- Return the centrifugal force
tmp<volVectorField::Internal> Fcentrifugal() const;

//- Source term component for momentum equation
tmp<volVectorField::Internal> Su() const;

//- Return velocity of SRF for complete mesh
tmp<volVectorField> U() const;

//- Return absolute velocity for complete mesh
tmp<volVectorField> Uabs() const;


How do I go about writing out internalFields?
Madeleine C is offline   Reply With Quote

Old   September 12, 2020, 18:47
Question
  #2
New Member
 
Join Date: Aug 2020
Posts: 16
Rep Power: 5
decanter is on a distinguished road
Hello,

it has been a while but did you find any solution? I am looking for the exact same thing.

Cheers,
Ayca
decanter 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
Calculating source term in selected cells ggoggodak85 OpenFOAM Programming & Development 3 November 29, 2018 07:56
Coriolis and centrifugal forces hilde CFX 5 June 18, 2015 18:50
MRFZonesC questions what is the mesh_V and why only Coriolis force no centrifugal force waynezw0618 OpenFOAM Running, Solving & CFD 49 April 8, 2008 04:23
Re: viscous source term mt Phoenics 10 February 11, 2005 10:46


All times are GMT -4. The time now is 02:38.