CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums

Search Results

Register Blogs Community New Posts Updated Threads Search

Showing results 1 to 2 of 2
Search took 0.00 seconds.
Search: Posts Made By: Diro7
Forum: OpenFOAM Programming & Development March 23, 2021, 04:29
Replies: 12
Views: 3,888
Posted By Diro7
You are definitely right, my answer was a little...

You are definitely right, my answer was a little ambiguous.
If you already have some object U like a volScalarField, then it is much easier to just call U.db().

If not, this->db() may do the job...
Forum: OpenFOAM Programming & Development March 22, 2021, 05:53
Replies: 12
Views: 3,888
Posted By Diro7
I didn't try myself, but you should be able to...

I didn't try myself, but you should be able to access the mesh database, and then the simulation time with something like
db().time().value()
where db() is a call from a objectRegistry object.
...
Showing results 1 to 2 of 2

 
Forum Jump

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