Try searching online for the timeVaryingMappedFixedValue boundary condition. You'll have to generate a bunch of files describing the points where you want to specify data in addition to the data at those points for specific times during your simulation. All of these files are stored in the constant directory of your case. OpenFOAM will then interpolate in space over time to transition from one set of data to the next when you run your case.
I once did a project where I simulated pipe flow using LES. The number of cells in my geometry was in millions. If I had generated the profile, simulating time could have been considerably lower. If I have to initiate the profile using initial values, how can I save time. The real benefit in high speed flows and dense mesh where we have to extract surface pressure loads for Fluid Structure Interaction comes when we can initiate the profile directly without initial solution.
Thank you for this wonderful video. It was really helpful. Can you please show us how to make it time dependent. In other words, how to make changes so that at every time step it takes the latest value of velocity.
Fantastic video Mark. Really helped me. So much so in fact that I'm looking to expand it. If we wanted to change the index of the equation (n = 4) in your case, but still get the same area under the curve, ie same flux, how would we do that? any thoughts?
hi, I am trying to simulate cylindrical batteries using chtmultiregion solver setup. can you tell me how to define non unifrom profiles like cylindrical batteries in blockmesh?
Hello Mark, I have a quick question regarding monitoring velocity and mass flow values. If I have multiple outlets in my model, and if I want to monitor the Vx, Vy, Vz components of the liquid jet coming of those outlets, how can I do it while the model is running? What command lines do I need to add to the code/ control dict, so the model generates an output file (.dat, .txt etc) that has the area averaged values of Vx, Vy, Vz values and mass flow rates for each outlet per time step or flow time or iteration while it is running? Thank you and Gig 'em :) Ozgur
Hi, in this tutorial you already had the values of the velocity field for all the cells but is there any way to define these values as a function in OpenFOAM? Thanks for the tutorial!
Try looking up the codedFixedValue boundary condition. For example, the video ua-cam.com/video/hfHqzB6YsVM/v-deo.html shows the results of an example described in the blog sourceflux.de/blog/the-codedfixedvalue-boundary-condition/ of how such a condition can be implemented
1) load model in Paraview, 2) add the Cell Centers filter, 3) open up a spreadsheet view, 4) select specific boundary in Composite Data Set Index, 5) export spreadsheets's Point Data
Also you can be helped from the "sed" command if you use LINUX. All values that i want are in the patch named e.g. "inlet" and the next patch in my list (the order is in polymesh/boundary) is "wall2", so i can just generate a smaller file "fileCoord" via "sed -n '/inlet/,/wall2/p' ccz > fileCoord"
In new versions of OF, you need to use this command instead: postProcess -func writeCellCentres
Brilliant example and very well explained
I second this, this was a very helpful tutorial!
Thank you for this great tutorial
Good job!
I wonder if there is a possibility to make it time dependent.
Try searching online for the timeVaryingMappedFixedValue boundary condition. You'll have to generate a bunch of files describing the points where you want to specify data in addition to the data at those points for specific times during your simulation. All of these files are stored in the constant directory of your case. OpenFOAM will then interpolate in space over time to transition from one set of data to the next when you run your case.
I once did a project where I simulated pipe flow using LES. The number of cells in my geometry was in millions. If I had generated the profile, simulating time could have been considerably lower. If I have to initiate the profile using initial values, how can I save time. The real benefit in high speed flows and dense mesh where we have to extract surface pressure loads for Fluid Structure Interaction comes when we can initiate the profile directly without initial solution.
Thank you for this wonderful video. It was really helpful. Can you please show us how to make it time dependent. In other words, how to make changes so that at every time step it takes the latest value of velocity.
look up the timeVaryingMappedFixedValue boundary condition as I mentioned in another comment
Hi Md Faiaz Khaled do you have success with making it time-dependent?
Fantastic thank you
Fantastic video Mark. Really helped me. So much so in fact that I'm looking to expand it. If we wanted to change the index of the equation (n = 4) in your case, but still get the same area under the curve, ie same flux, how would we do that? any thoughts?
hi, I am trying to simulate cylindrical batteries using chtmultiregion solver setup. can you tell me how to define non unifrom profiles like cylindrical batteries in blockmesh?
Hello Mark,
I have a quick question regarding monitoring velocity and mass flow values. If I have multiple outlets in my model, and if I want to monitor the Vx, Vy, Vz components of the liquid jet coming of those outlets, how can I do it while the model is running? What command lines do I need to add to the code/ control dict, so the model generates an output file (.dat, .txt etc) that has the area averaged values of Vx, Vy, Vz values and mass flow rates for each outlet per time step or flow time or iteration while it is running?
Thank you and Gig 'em :)
Ozgur
Hello, is it possible that you can please provide a link to download case directory so that we can work through the example
Thank a lot
How to get the P (pressure) or T (Temperature) if the simulation needs the non-uniform this parameters?
List included to OpenFOAM at 26:42
Hi, in this tutorial you already had the values of the velocity field for all the cells but is there any way to define these values as a function in OpenFOAM? Thanks for the tutorial!
Try looking up the codedFixedValue boundary condition. For example, the video ua-cam.com/video/hfHqzB6YsVM/v-deo.html shows the results of an example described in the blog sourceflux.de/blog/the-codedfixedvalue-boundary-condition/ of how such a condition can be implemented
My copy of openFOAM (v1906) doesn't have this writeCellCentres utility. Is there any functionality for coordinates extraction in new versions of OF?
1) load model in Paraview, 2) add the Cell Centers filter, 3) open up a spreadsheet view, 4) select specific boundary in Composite Data Set Index, 5) export spreadsheets's Point Data
It should be: postProcess -func writeCellCentres
When I execute the command writeCellCentres ,it is showing command not found. Can Anyone help me??
use this command: postProcess -func writeCellCentres
thank you for this insightful video, but what if I have 500000 cells in the inlet, do you think this method is convenient?
write a script to generate the entire file for you so you don't have to do all of the copy pasting
Also you can be helped from the "sed" command if you use LINUX. All values that i want are in the patch named e.g. "inlet" and the next patch in my list (the order is in polymesh/boundary) is "wall2", so i can just generate a smaller file "fileCoord" via "sed -n '/inlet/,/wall2/p' ccz > fileCoord"